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

nk_love_draw is quite slow #56

Open
fastcoding opened this issue Oct 18, 2020 · 0 comments
Open

nk_love_draw is quite slow #56

fastcoding opened this issue Oct 18, 2020 · 0 comments

Comments

@fastcoding
Copy link

In my testing on macos, the sample app occupied 85% cpu time, the framerate can not event reach 60. On the contrary, the sdl2 example of nuklear (compiled with INCLUDE_ALL) only takes 6% of CPU. The timing profiler shows that most of time (>80%) is spent in nk_love_draw.

The reason might be the current implementation didn't use nk_convert and vertexes to do batch draw on GPU.

The love binding implementation for dear imgui uses Mesh, which looks faster. maybe it's a way to improve.

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

No branches or pull requests

2 participants