Jump to content
  • Advertisement
Sign in to follow this  

SDL Renderer memory leak?

This topic is 1555 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!