Skip to content

Conversation

jsoulier
Copy link
Contributor

@jsoulier jsoulier commented Sep 10, 2025

Creating buffers in GPU is very expensive (NSight clocked around 1.5 ms in Debug for the CPU/GPU buffer). We need to make sure to set the size so that we don't reallocate each frame.

image

@slouken
Copy link
Collaborator

slouken commented Sep 10, 2025

Nice catch, thanks!

@slouken slouken merged commit ed6a72a into libsdl-org:main Sep 10, 2025
42 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.

2 participants