-O2 optimisation

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

Prior to this I have been using -Os in the linker options. This optimises for small code. I changed to -O3 which was super-fast but huge ROM size. I'm now settled on -O2 which is quite costly in ROM size but makes such a massive difference in game speed I think it's worth the cost.  On one of the most taxing levels, the water world, average game loop speed dropped from ~13 frames/cycle down to ~8 frames/cycle. That's massive.

In the video here, I play through a number of levels. It *feels* a lot smoother, and I think looks a lot smoother too.  Binary attached so you can decide for yourself.