itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
197 stars 21 forks source link

Optimising C Renderer #109

Closed olls closed 6 years ago

olls commented 8 years ago

Currently the C renderer is no different from the Python renderer in terms of speed (as far as I can tell...)

geraintwhite commented 8 years ago

It's quicker driving the neopixels on a Pi definitely

On Fri, 15 Apr 2016 at 13:33 Oliver Faircliff notifications@github.com wrote:

Currently the C renderer is no different from the Python renderer in terms of speed (as far as I can tell...)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/itsapi/pycraft/issues/109

olls commented 8 years ago

OK, on my computer it almost seems slower... Would be good to optimise it anyway!

olls commented 8 years ago

It is definitely slower on my PC. There seems to be a bug in the differential output though, because it is reprinting more blocks than the python renderer on average.

geraintwhite commented 8 years ago

We seem to have a memory leak somewhere as it gets very slow to open the pause menu or quit the game.

olls commented 7 years ago

This is useful to know: https://wiki.python.org/moin/TimeComplexity