Skip to content

Commit

Permalink
Tweak PS4 non-hack report timer (#903)
Browse files Browse the repository at this point in the history
* try an aggressive forced report timer

* change the PS4 keepalive timer to 5ms

the synthetic results at 2ms were pretty good, just a bit too high of a
stddev (compared to other modes) for my liking. I think 5ms will do what
I want (multiple forced reports when idle per 60 Hz frame) without
harming real-world usage.

2ms results for posterity (three runs of WydD):

min: 0.55
max: 2.38
average: 0.97
stddev: 0.38

min: 0.55
max: 2.24
average: 0.97
stddev: 0.38

min: 0.55
max: 2.38
average: 0.99
stddev: 0.38

5ms should scoot the average and stddev down a bit.
  • Loading branch information
bsstephan authored Mar 28, 2024
1 parent 12eca3d commit a64eaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/ps4/PS4Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "enums.pb.h"

// force a report to be sent every X ms
#define PS4_KEEPALIVE_TIMER 250
#define PS4_KEEPALIVE_TIMER 5

void PS4Driver::initialize() {
//touchpadData = {
Expand Down

0 comments on commit a64eaa1

Please sign in to comment.