Blizzard / Blizzard/s2protocol

[Question] Calculate the APM correctly

Open
#15 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
641
Forks
118
PR merge metrics
No merged PRs in 30d

Description

Hey there,

I'm now trying around with this topic since a few days and I'm not able to calculate the same APM you have in the game ("Current APM" and "Average APM"). I thought for the average at the game end it should be easy (just add all events together which calculate in the APM and divide by the duration), but also this is not possible for me to reconstruct, so I would be happy for some help here.

I think there are two questions:
- Which events count into the APM? I think only gameevents and my researches ended up in these: `apmEvents = ['NNet.Game.SSelectionDeltaEvent', 'NNet.Game.SCmdEvent', 'NNet.Game.SControlGroupUpdateEvent']`
Is that correct?
- What's the formula? For example if I start a match and directly select a unit, SC2 says my APM is 12 or something :) So I'm wondering what the formula is.

Thanks for your help and greetings from Cologne!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.