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

Slowdown with excess draws #162

Open
Feksaaargh opened this issue Oct 29, 2024 · 1 comment
Open

Slowdown with excess draws #162

Feksaaargh opened this issue Oct 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Feksaaargh
Copy link

When drawing many times to the screen using Pinetime::Components::LittleVgl::FlushDisplay, Infinisim slows down greatly. This appears when there is in the order of several tens of draws per frame.
I've created an example app which shows this here: https://github.com/Feksaaargh/InfiniTime/tree/infinisim-draw-slowdown. This example has 50 5x5px particles, each of which are blanked out and redrawn every 40ms for 2500 draws per second.

infinisim_recording.mp4
watch_recording.mp4
@NeroBurner
Copy link
Collaborator

This is most likely because of https://github.com/InfiniTimeOrg/InfiniSim/blob/main/sim/displayapp/LittleVgl.cpp#L318 which I introduced to slow down the display transitions to have them look comparable to how they look on the PineTime

  // delay drawing to mimic PineTime display rendering speed
  vTaskDelay(pdMS_TO_TICKS(3));

If you find a better way a PR ist most welcome :)

@NeroBurner NeroBurner added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants