Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


SDL Renderer memory leak?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Tuxity   Members   -  Reputation: 116

Like
0Likes
Like

Posted 22 June 2014 - 03:58 AM

Hello,

 

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, 22 June 2014 - 04:07 AM.


Sponsor:

#2 Jan2go   Crossbones+   -  Reputation: 1429

Like
0Likes
Like

Posted 22 June 2014 - 04:00 AM

We can't help you if you don't provide the code that is causing the problem. ;)



#3 Tuxity   Members   -  Reputation: 116

Like
0Likes
Like

Posted 22 June 2014 - 05:49 AM

I somehow fixed it by switching the GPU in my laptop.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS