Massive Performance and Memory Hog
Posted: Sun Jan 13, 2013 6:06 am
Hello everyone.
I am creating a simple rougelike for my class project and I have run into some problems. The game is at a very early point at this stage so all you can do is move around a little @ symbol with the arrow keys and you run into the stones and the water. I have copied the code structure and a lot of the code from the 0.8 example program entitled "no" (which I have included in an attachment with my own code), because it had a working state and menu system which I was failing to create. In doing this though, the program still operates as intended but it now takes up to 95% of my cpu and up to 150 Mb of memory for doing what should take less than 30 Mb of memory. This causes the FPS to go down the shitter and make my computer super slow. I have no way of knowing what is taking up so much processing power. Any help would be appreciated.
I am creating a simple rougelike for my class project and I have run into some problems. The game is at a very early point at this stage so all you can do is move around a little @ symbol with the arrow keys and you run into the stones and the water. I have copied the code structure and a lot of the code from the 0.8 example program entitled "no" (which I have included in an attachment with my own code), because it had a working state and menu system which I was failing to create. In doing this though, the program still operates as intended but it now takes up to 95% of my cpu and up to 150 Mb of memory for doing what should take less than 30 Mb of memory. This causes the FPS to go down the shitter and make my computer super slow. I have no way of knowing what is taking up so much processing power. Any help would be appreciated.