Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance drop in comparison to raw C++ library #51

Open
SgtChrome opened this issue Oct 31, 2023 · 0 comments
Open

Performance drop in comparison to raw C++ library #51

SgtChrome opened this issue Oct 31, 2023 · 0 comments

Comments

@SgtChrome
Copy link

SgtChrome commented Oct 31, 2023

I am using a Raspberri Pi 1 B+ with the adafruit hat and performance mod enabled. Running the text demo included with the original library I am getting about 130 to 230 Hz. Running a demo of the Rust Bindings never nets more than 44 Hz. What puzzles me is that the following performance relevant parameters don't meaningfully change the result:

  • Drawing more or less pixels at a time
  • led-slowdown-gpio 0 or 1
  • using adafruit-hat or adafruit-hat-pwm
  • compiling for debug/release

All these settings combined don't change the total Hz gained by more than 1 or 2 Hz. I am wondering if the lower Hz rate is due to overhead introduced by Rust or if I am making a mistake somewhere. Could somebody confirm that there is a difference in performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant