• Advertisement
Sign in to follow this  

SDL Renderer memory leak?

This topic is 1312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts



I've been trying to learn C++ and SDL2.

When just creating the window and using a event handling loop everything is fine.


However when I add the rendering part (just RenderClear and RenderPresent) to the loop, I see my program

keeps increasing the memory use in taskmanager.

The program starts at about 4800kB incrementing with 500 and starts slowing down at 9000kB incrementing with about 150 everytime.

(Not every frame but it takes about 10-30 seconds to increase again).


I don't think this is normal, but I'm just creating a window and renderer and then displaying a black screen, I have no clue what could be the problem.

Edited by Tuxity

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement