vaniacer / piu-piu-SH

This is an Old School horizontal scroller 'Shoot Them All' game in bash. With multiplayer modes team and duel. You have to defeat 100 aliens to fight with Boss. I'm using netcat for client-server exchange in multiplayer mode. So netcat have to be installed on system if you wish to play with friend. Terminals on both hosts have to be with equal dimensions.
MIT License
738 stars 36 forks source link

Avoid calling external tools in game loop #7

Closed Self-Perfection closed 7 years ago

Self-Perfection commented 7 years ago

Starting new process is rather expensive operation. Avoiding using external applications should improve performance. On my system these changes reduce amount of forks from ~240 forks/s to ~70 forks/s. FPS seems to be slightly increased, by ~10% It's hard to tell exactly as FPS varies during playing.

vaniacer commented 7 years ago

Cool, thanx. Don't want to change that 'line' function so i've change the filling method.