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

Add cached priority store, optimise shape/sprite rendering #90

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

Jerboa-app
Copy link
Contributor

  • PriorityStore stores elements with priority and id, with a contiguous cache.
  • Can draw > 10^6 Shapes in 60fps
  • Adding and re-prioritising are cheap operations (but re-caching in next draw call is expensive).
  • Particles provide for optimised add/removal (and can be textured).

examples/Shape/main.cpp Show resolved Hide resolved
examples/Shape/main.cpp Outdated Show resolved Hide resolved
include/jGL/priorityStore.h Show resolved Hide resolved
include/jGL/priorityStore.h Outdated Show resolved Hide resolved
@Jerboa-app Jerboa-app merged commit 122773e into main Sep 9, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

1 participant