Reduce CPU usage

This commit is contained in:
redphx 2022-05-03 17:36:58 +07:00
parent 1f98a9bf46
commit a6d66b3418
2 changed files with 37 additions and 35 deletions

View file

@ -15,7 +15,8 @@ WS_SUBPROTOCOLS[WsSubprotocolVersion.V1.value] = 'v1.phonescoring.jd.ubisoft.com
WS_SUBPROTOCOLS[WsSubprotocolVersion.V2.value] = 'v2.phonescoring.jd.ubisoft.com'
FRAME_DURATION = 1 / 60
ACCEL_ACQUISITION_FREQ_HZ = 200 # Hz
SEND_FREQ_MS = 0.005
ACCEL_ACQUISITION_FREQ_HZ = 60 # Hz
ACCEL_ACQUISITION_LATENCY = 40 # ms
ACCEL_MAX_RANGE = 8 # ±G