« Oh noes! T-Mobile b... FastStart on .MP4 f... »

Stats on PV3D 2.0

Jan 17th, 2008

Some people asked me about how to get the stats of how many polygons were being rendered per frame on PV3D 2.0. Well, I didn't know until yesterday. It has indeed changed a bit, here is how:

public var stats :RenderStatistics;

public function renderLoop(e:Event = null)
{
stats = renderer.renderScene(scene, camera, viewport);
trace(stats);
}


You get much more extra info than just the polygons, take a look on the RenderStatistics class for more info. Hope this makes it clear for everyone.

#permalink

Share:
Digg! ~ del.icio.us ~ Stumble ~ Furl ~ Reddit
Webs / Print / Logos... everything I do will be listed here.



If you're looking for my Actionscript experiments, here you have: