Performance, other fixes


The new version greatly increases the game's efficiency. CPU usage on my test machine(Linux Mint 18.3) has decreased from 20-24% all the way down to 8-12%. For some reason my scrolling buffer was using software alpha blitting, which requires far more CPU time than non alpha-blended surfaces. Since there’s nothing to see behind the background, background transparency is completely unnecessary and was just burning CPU time for nothing.


Windows users should not expect less performce boost since their pygame version probably supports hardware accelerated blitting. In Windows 10 my CPU usage was at 5.5% and dropped to 4% with alpha blitting disabled for the background buffer.

I know that the pygame library I'm using is considered too slow for real games, but I like it for it's ease of use and the speed of python software development. Another advantage is that it forces programmers to think about efficiency and be creative.

Sure, my pygames will never be as efficient as, say, the opensource Super Tux mario clone, which uses 2% CPU on my PC at HD resolution. The Godot engine would allow way more effects and on screen objects, but even a barebones Godot game uses 20% CPU. I think at 8%, I've found a happy medium between good old-fashioned low-level C programming and a heavy, feature-packed modern engine like Godot or Unity. It just won't up-scale as far.

A few small bugs have been fixed:
After standing still a small amount of horizontal velocity carried over into jumps
RoboTRAK would move to fast after unfreezing
The Hard map entitled 'Lofty Obstacle Rush' was unbeatable. There are no switches so the door now starts open.

Files

Flyboy.tar.gz 4 MB
Mar 02, 2019
Flyboy.exe 11 MB
Mar 02, 2019

Get Flyboy

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.