Hi and welcome to my personal page where I'll post about my games, projects and other stuff in my life.
- MenuCity
- Bugger
- Jonas IceCream Stand
- The Chronicles of Bim: The 100 Fake Afros
- Black and White
- A Geek Valentine
- Balls
- Beebop The Island Hopper
- Where's Teddy?
- My Minions
- Sat-E
- Grand Thief Arto
- Attention (3)
- Books (4)
- Computer (3)
- Declaration of War (1)
- Dream Games (2)
- Editors (1)
- Feedback (2)
- Game Design Course (3)
- Game Making (7)
- Games (12)
- General (15)
- Microprogramming (1)
- News (7)
- Postmortems (9)
- Productivity (1)
- Programming (1)
- Prototyping (2)
- Puzzles (1)
- Rants (1)
- Taekwon-do (1)
- Themes (9)
- Timelapse (2)
- Timeline (1)
- Walkthroughs (1)
- Webpage (4)
- Yearly Review (2)
- Design for Hackers
- Getting Comfortable
- A Four-Eyed Update
- Game Design Analysis: World of Goo
- A Week of Headache
- Beebop The Island Hopper
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- October 2010
- September 2010
- 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 | Comments(0)
October 13, 2009
An intriguing new puzzle
Here's another game made for the experimental gameplay project:
Slidoku which is a sort of mix between Rubik's cube and sudoku. I enjoy puzzles like those and I really enjoyed this one too - it took me a while to beat it but I just love the feeling when you do. If you like puzzles take a look, it'll be worth it!
Posted by Jonas Hietala in Puzzles | Comments(0)

Subscribe