jvpernis / esp32-ps3

Control your ESP32 projects with a PS3 controller!
319 stars 86 forks source link

Changing the CPU speed is not affecting the performance. #41

Open aayushgavande opened 3 years ago

aayushgavande commented 3 years ago

I added a loop timer in the Ps3Data example code which prints the time taken by the loop to execute. I tested it on 80MHz, 160MHz and 240MHz CPU frequency on the ESP32. Usually, a higher CPU frequency leads to faster execution of the loop, but the loop time in all three cases is the same. I tried a normal for loop without the ps3 library and I got the performance boost on increasing the CPU speed. I assume that this is an issue with the ps3 library. Can someone explain why I am facing this issue?