Skip to content

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

Merged
Jerboa-app merged 4 commits intomainfrom
shape_optimisations
Sep 9, 2024
Merged

Add cached priority store, optimise shape/sprite rendering#90
Jerboa-app merged 4 commits intomainfrom
shape_optimisations

Conversation

@Jerboa-app
Copy link
Copy Markdown
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).

Comment thread examples/Shape/main.cpp
Comment thread examples/Shape/main.cpp Outdated
Comment thread include/jGL/priorityStore.h
Comment thread include/jGL/priorityStore.h Outdated
@Jerboa-app Jerboa-app merged commit 122773e into main Sep 9, 2024
@Jerboa-app Jerboa-app deleted the shape_optimisations branch November 30, 2024 17:34
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