I am working on my game called Retro Invaders it's like Space Invaders.
And I have problem with FPS...
Well I have found some functions for FPS for example on http://www.sdltutorials.com/ and these functions are used only in movement of entities...
Well it looks well, but my computer uses during the game 100% CPU. And if I use SDL_Delay in the end of the loop, the computer uses 12-15% of CPU.
This is also well, but the game looks like it runs and halts and runs and halts.
Also surfaces are not blitted properly
My question is... any idea how to solve this problem please?
TetriarchMember Since 12 Jan 2011
Offline Last Active Yesterday, 11:14 PM
- Group Members
- Active Posts 13
- Profile Views 1,441
- Submitted Links 0
- Member Title Member
- Age 21 years old
- Birthday December 29, 1992
Game Development, science, friends, Sci-fi/Fantasy movies or series., metal music =D
- Website URL http://tetriarch.deviantart.com