schnoog / Joystick_ESP32S2

Joystick library for ESP32 S2 & S3 devices (native USB) for the Arduino framework.
GNU Lesser General Public License v3.0
34 stars 3 forks source link

Slow execution time #1

Closed ChrGri closed 1 year ago

ChrGri commented 1 year ago

Hi @schnoog, thank you for the port. Good job. It works as expected. I wrote a simple script to measure the runtime. With Arduino Due and the original lib, 36µs have been timed. With an ESP32 S2, approx. 1000µs have been timed for the same script, see attachment.

Is it possible to achieve similar runtimes on ESP32?

BR

----EDIT----- I've added an zero here, now it runs at 20µs on the ESP: image

DrivingControllerTest_Profiling.zip

schnoog commented 1 year ago

Thank you very much for your feedback (and providing the solution).

Will change it in the library and after testing issue a new version.