How to output data from the 'running stats' module to the console?

Hello, :night_with_stars:

How to output data from the ‘running stats’ module to the console? I need the following metrics:

Game logic
Physics
Renderer
Present
GFX texture
GFX Buffer

I can currently only get:


console.log(`
    DrawCalls ${director.root.device.numDrawCalls}
    FPS ${currentFps} //custom
    triangle ${director.root.device.numTris}
    Instances Count: ${director.root.device.numInstances}
    frameTime: ${director.root.frameTime}
`)

You can get the running stats from profiler. _stats,

1 Like