SFML community forums

Help => General => Topic started by: zarcel on March 27, 2011, 10:26:07 am

Title: Help me optimize my game
Post by: zarcel on March 27, 2011, 10:26:07 am
Hi!
I have finished my first game - pong. Ofcourse I wasn't paying attention to things like memory usage etc, because I wanted t learn basic's about game programming. Anyway now I wan't to change it. My pong weight is 1.1 MB when compiled (only 200 lines of code!). And the worst thing is that I have to add sfml dlls to it. Is there any other way doing it ? Because with all dlls it weights is aroud 20 MB~.

Second thing is Ram usage. It takes 8 MB of ram. How to make it lower ? Limit FPS ?

Btw I have already checked all optimize options in compiler settings.
Title: Help me optimize my game
Post by: devlin on March 27, 2011, 10:57:28 am
Start with compiling it in Release-mode instead of Debug - and you'll see rather nice space savings. :)
Title: Help me optimize my game
Post by: zarcel on March 27, 2011, 12:00:35 pm
Indeed it helped, but what about these dlls ?
Title: Help me optimize my game
Post by: shiroaisu on March 27, 2011, 05:13:06 pm
You can use static libs instead of dynamic ones, this basicaly means that the "dlls" will be inside your executable. btw congratz for the first game :)