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

GPU renderer leaking memory every frame #12507

Open
boris-999 opened this issue Mar 10, 2025 · 0 comments
Open

GPU renderer leaking memory every frame #12507

boris-999 opened this issue Mar 10, 2025 · 0 comments
Assignees
Milestone

Comments

@boris-999
Copy link

boris-999 commented Mar 10, 2025

win10. SDL3.2.6 and 3.2.8

when renderer set to gpu, this leaks memory:

SDL_LockTexture( texture, nullptr, &pixels, &pitch );
{draw into the pixels[]}
SDL_UnlockTexture( texture );
SDL_RenderTexture( renderer, texture, &dest, &dest );
SDL_RenderPresent( renderer );

when renderer defaults to direct3d11 the above works perfectly (as expected).

issue: the above code should gracefully no-op or work or not leak piles of memory every frame.

I realize someone is likely going to say something like: "you aren't supposed to do the above stuff with gpu"
, if that's the case, my bad, but still feel like it shouldn't be leaking huge amounts of memory.

@slouken slouken added this to the 3.2.10 milestone Mar 10, 2025
@slouken slouken assigned slouken and TheSpydog and unassigned slouken Mar 10, 2025
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