Fukushousha
02-03-2007, 03:21 PM
First of all , hello to everyone since this is my first post in these forums.I am making a 2D game strategy-like in C++ , using the SDL library.
Since this is the first game that is not 2D platform and is more complicated than pac-man (referring to my previous games in Java )...I am starting to experience rapid decrease in performance.I put an fps counter and it starts around 40 but as the game progresses falls at about 30.Also after a few compile & runs even after I quit my program my computer goes extremely slow , as if all its physical memory is taken.Even opening a folder at windows takes around 10 seconds
I know it must be memory leak.And as a new programmer to C++ I know that I am prone to not freeing memory used by pointers , but I specifically searched for that and saw that this was not the case.
So my question is , any tips for improving game performance by optimizing the code?Also .... what is a good fps to try to keep the game at?
On a sidenote: Great site , glad to have found another site with great info for game developing :) .
EDIT 2: Weird , I almost double posted the topic , it notified me of not being logged in , so I would post it again but saw that it got posted anyway.
Since this is the first game that is not 2D platform and is more complicated than pac-man (referring to my previous games in Java )...I am starting to experience rapid decrease in performance.I put an fps counter and it starts around 40 but as the game progresses falls at about 30.Also after a few compile & runs even after I quit my program my computer goes extremely slow , as if all its physical memory is taken.Even opening a folder at windows takes around 10 seconds
I know it must be memory leak.And as a new programmer to C++ I know that I am prone to not freeing memory used by pointers , but I specifically searched for that and saw that this was not the case.
So my question is , any tips for improving game performance by optimizing the code?Also .... what is a good fps to try to keep the game at?
On a sidenote: Great site , glad to have found another site with great info for game developing :) .
EDIT 2: Weird , I almost double posted the topic , it notified me of not being logged in , so I would post it again but saw that it got posted anyway.