#174498 - protomank - Thu Jun 17, 2010 2:58 pm
Hello, I need some help to optimize my game project, that is based on SDL.
The code is available in http://rockman-engine.svn.sourceforge.net/viewvc/rockman-engine/.
It becomes very slow when there are too much sprites (a player, 3 npcs and shots) in the screen. But even on a clean screen, it looks like the update of the background is slow.
Disclaimer:
- there is no way I will not not SDL unless some brave sould takes the step to do a full port to DS ;)
- I've already saw DS programs running in full speed in the DS
- so, fell free to point errors in my code that are making things slow, even if you say "you need to rewrite 80% of the code". It is ok, I'm open to critics.
_________________
Iuri Fiedoruk
http://rockbot.upperland.net
The code is available in http://rockman-engine.svn.sourceforge.net/viewvc/rockman-engine/.
It becomes very slow when there are too much sprites (a player, 3 npcs and shots) in the screen. But even on a clean screen, it looks like the update of the background is slow.
Disclaimer:
- there is no way I will not not SDL unless some brave sould takes the step to do a full port to DS ;)
- I've already saw DS programs running in full speed in the DS
- so, fell free to point errors in my code that are making things slow, even if you say "you need to rewrite 80% of the code". It is ok, I'm open to critics.
_________________
Iuri Fiedoruk
http://rockbot.upperland.net