Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Help me optimize my game  (Read 2196 times)

0 Members and 1 Guest are viewing this topic.

zarcel

  • Newbie
  • *
  • Posts: 6
    • View Profile
Help me optimize my game
« 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.

devlin

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Help me optimize my game
« Reply #1 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. :)

zarcel

  • Newbie
  • *
  • Posts: 6
    • View Profile
Help me optimize my game
« Reply #2 on: March 27, 2011, 12:00:35 pm »
Indeed it helped, but what about these dlls ?

shiroaisu

  • Newbie
  • *
  • Posts: 28
    • View Profile
Help me optimize my game
« Reply #3 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 :)

 

anything