Increasing UPBGE 0.3's performance using Python?

Like is there a way to detect if the framerate is below 60 and force it to 60 via Python, and kicks in when the Rasteriser is high? When the framerate is low, the Rasteriser is high, so maybe forcing that to be low is possible?

Just wondering if all this is actually possible, or am I stuck? Using 0.35, which can be slow when viewing materials close up/armatures.

bge.logic.getAverageFrameRate()
&
bge.logic.getProfileInfo()

import bge
def main(self):
    l = bge.logic.getProfileInfo()
    # Rasterizer stats (in miliseconds)
    print(list(l.values())[5])
2 Likes

Hello. I was wondering if you got that to work rasterizer gpu and dephsgraph keep slowing game too. If so can you help me to get the system working please.

Rasterizer GPU?? Also what is the Outside shown in the profile? I know Rasterizer is the refresh rate of your monitor (A CRT will have a much lower Rasterizer than an LCD)

outside is the gpu/cpu power left, once it reaches 0 your frames going to drop.

image

https://mogurijin.wordpress.com/category/bge/

Sorry I mean rasterizer, Gpu and dephsgraph.
I seem to have 0% on my Outside though I have nothing else running. If I make a new file and run it I have Outside around 20%.