Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

SDL Renderer memory leak?

4: Adsense

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   

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.


#2 Jan2go   Members   

2013
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   

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.