Show polygon/vertice count

How can I find out about the polygon/vertice count that my scenegraph is rendering?
Any way to show it on the screen?


Put this in your Config.prc file:

show-scene-graph-analyzer-meter #t

Wow, how did I not know about this config setting? That’s pretty fun!

It reports a static evaluation of everything in your scene. If you want a live report of what’s actually getting sent to the graphics card (after culling), you can use PStats.


thanks a lot rdb. Is there a runtime equivalent of it as well?

@drwr: it was in the Schell patch. You were the one who committed it. :stuck_out_tongue:

@rishav.sharan: I don’t think so (not sure), but you can always create your own using something like:

sga = SceneGraphAnalyzerMeter("", base.render.node())

You can call render.analyze() to print this text to the console.

I just committed a change that allows you to call base.setSceneGraphAnalyzerMeter(True) to allow you to create the onscreen meter dynamically, but this won’t be available in the 1.7.2 version. You’ll have to download and run the next buildbot version to get this change.

For 1.7.2, you can do it by hand with code like this:

meter = SceneGraphAnalyzerMeter('meter', render.node())


wow. thanks guys. i can see tons of new info.