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

SDL example has low FPS on Android #8

Open
SasLuca opened this issue May 24, 2024 · 2 comments
Open

SDL example has low FPS on Android #8

SasLuca opened this issue May 24, 2024 · 2 comments

Comments

@SasLuca
Copy link

SasLuca commented May 24, 2024

I compiled and ran the example using SDL3 on Android. I get around 20fps on both a physical Pixel 6 and a Pixel 3 emulator.

I tried disabling NVGL_DEBUG and trying various flags but I only managed to get the fps lower.

Are there any considerations I should be aware of when compiling the demo on Android/iOS to get high fps?

@THZthz
Copy link

THZthz commented Oct 23, 2024

It emits too many draw calls to GPU, and frequent memory copy/move on CPU.

@pbsurf
Copy link
Collaborator

pbsurf commented Oct 29, 2024

The SDL example has several screens, with different FPS (tapping the screen cycles through them). On a physical Pixel 3 (with the "vtex" backend), the animated UI demo (from the original nanovg) runs at 50 FPS, the large rectangle demo 50 FPS, and the many small paths demo at 9 FPS.

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

3 participants