ppizarror / pygame-menu

A menu for pygame. Simple, and easy to use
https://pygame-menu.readthedocs.io/
Other
555 stars 141 forks source link

Runs extremely slowly on older hardware. How to disable transition / fade effects? #484

Open joncox123 opened 4 months ago

joncox123 commented 4 months ago

I find pygame-menu runs extremely slowly on older hardware due to the blur / fade / transition effects. How can I turn off all unnecessary updates and effects? I want the bare minimum, which is a direct update of the menu screen when an event occurs.

It seems that pygame menu always implements a fade out or transparency transition effect. Perhaps it does this by storing a list of previously rendered surfaces and blitting the old surfaces with transparency (alpha) to create a kind of "slow response" effect.

Unfortunately, this practice is unnecessary and extremely slow on hardware without transparency acceleration.

How can I disable this? It wasn't clear from searching the code.