mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

Added 2 new properties for surfaces + FPSMonitor optimization #650

Closed oomek closed 3 years ago

oomek commented 4 years ago

The FPSMonitor was not performing well enough on RPI3, so I've decided to do it properly. Instead of redrawing the whole graph now only one bar is drawn on each frame. I've made that possible by introducing 2 new properties for surfaces which allowed to draw a scrolling buffer: clear - T/F (Default: T) determines whether to clear the surface or leave the content from the previous frame. repeat - T/F (Default: F) changes the wrapping mode from clamp_to_edge to repeat. Those properties are not exposed atm until I find some interesting usage scenarios for them, I've got some ideas, which I will post later.

mickelson commented 3 years ago

ok, thanks