itsapi / pycraft

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

Adaptive Framerate #62

Open olls opened 8 years ago

olls commented 8 years ago

At the moment the framerate is set as a maximum of 15, but this is so that is can run in slower terminals, while on most terminals, it can go much faster. Could we make it adapt somehow, maybe by timing the print statement?

olls commented 8 years ago
FPS = 15
  Recorded FPS = 92.0%
FPS = 45
  While walking, FPS = 90.4%
  While digging, FPS = 97.5%

I think the error is too high to be meaningful...

olls commented 8 years ago

This would make the framerate independentness more useful