SFML community forums
Help => General => Topic started 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.
-
Start with compiling it in Release-mode instead of Debug - and you'll see rather nice space savings. :)
-
Indeed it helped, but what about these dlls ?
-
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 :)