This is my game making site. I've been making experimental game prototypes for a while now and I will try to release a game every month.
- MenuCity (1073 downloads)
- Bugger (877 downloads)
- Jonas IceCream Stand (566 downloads)
- The Chronicles of Bim: The 100 Fake Afros (408 downloads)
- Black and White (385 downloads)
- A Geek Valentine (305 downloads)
- Balls (281 downloads)
- Beebop The Island Hopper (155 downloads)
- Where's Teddy? (91 downloads)
- Where's Teddy?
- Game Design Analysis: World of Goo
- Generating ideas
- Competition Feedback
- Postmortem: Beebop The Island Hopper
- Beebop The Island Hopper
- Dream Games (1)
- Feedback (1)
- Game Design Course (3)
- Game Making (3)
- Games (10)
- General (2)
- News (6)
- Postmortems (7)
- Prototyping (2)
- Puzzles (1)
- Themes (9)
- Timeline (1)
- Walkthroughs (1)
- Webpage (4)
- Beebop The Island Hopper
- The Chronicles of Bim: The 100 Fake Afros
- The games that make me who I am
- A Geek Valentine
- February gets Themed: Rejection
- Jonas IceCream Stand
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
January 24, 2010
Why is my file so huge?
My latest game was absolutely huge! And I'm not talking about the music (which was pretty huge too - roughly 20mb) but the little .exe file.
It was 14,6mb!!
Now every way you look at it, that's incredibly huge. It's like comparing an ant to a human. Normally the little ant is the exe file which should be small, except that it's not.

Incredible I thought, what the heck did I do wrong? I mean my code isn't really good but I never knew it was this horrible. So today I was determined to find the cause of this obscene mutant ant.
I started out chopping off everything regarding exceptions, cause all c++ resources I've read say exceptions will take space like a mutant gremlin. Okay I thought and chopped away everything - but nothing happened.
Now that's weird, what happens if I scrap this.. and this.. It ended with me beginning a big revamp of my whole "engine", or rather collection of stuff - nothing inherently wrong as it was badly needed - but nothing happened with my exe file! It was still almost 2mb big with basically only a hello world...
Then it struck me! I had been using -g with gcc and without any optimizing at all. When I turned on size and speed optimizations and scrapped the debugging the change was quite extraordinary.
The mutant 14 637 kb was magically transformed to a more fitting ant size of 856 kb. I couldn't save much of the total file size (23 254 kb -> 20 768 kb) so while I apologize for hogging your bandwidth, time and harddrive space I'm hoping you won't be too mad at me.
Posted by Jonas Hietala in Game Making | Tagged Random, Games

Subscribe