SceneGraphAnalyzerMeter
from panda3d.core import SceneGraphAnalyzerMeter
- class SceneGraphAnalyzerMeter
Bases:
Bases:
TextNodeThis is a special
TextNodethat automatically updates itself with output from aSceneGraphAnalyzerinstance. It can be placed anywhere in the world where you’d like to see the output fromSceneGraphAnalyzer.It also has a special mode in which it may be attached directly to a channel or window. If this is done, it creates a
DisplayRegionfor itself and renders itself in the upper-right-hand corner.Inheritance diagram
- __init__(param0: SceneGraphAnalyzerMeter)
- clearWindow()
Undoes the effect of a previous call to
setupWindow().
- static getClassType() TypeHandle
- getDisplayRegion() DisplayRegion
Returns the
DisplayRegionthat the meter has created to render itself into the window tosetupWindow(), or NULL ifsetupWindow()has not been called.
- getUpdateInterval() float
Returns the number of seconds that will elapse between updates to the frame rate indication.
- getWindow() GraphicsOutput
Returns the
GraphicsOutputthat was passed tosetupWindow(), or NULL ifsetupWindow()has not been called.
- setUpdateInterval(update_interval: float)
Specifies the number of seconds that should elapse between updates to the meter. This should be reasonably slow (e.g. 0.5 to 2.0) so that the calculation of the scene graph analysis does not itself dominate the frame rate.
- setupWindow(window: GraphicsOutput)
Sets up the frame rate meter to create a
DisplayRegionto render itself into the indicated window.
- update()
You can call this to explicitly force the
SceneGraphAnalyzerMeterto update itself with the latest scene graph analysis information. Normally, it is not necessary to call this explicitly.
