console.time() in main cycle

  • Hello!
    Does krpano have debug mode, in main cycle, which can run console.time() ?
    We have some performance problems with rendering into webgl, it shows in chrome browser chrome://tracing/

  • Hi,

    krpano calls the onviewchange event before it start rendering and the onviewchanged event after the rendering, the remaining time is mainly spend the browser and the system itself executing the drawing calls.

    For getting the current 'run-time' the 'timertick' variable can be used:
    https://krpano.com/docu/actions/#timertick

    Here some self-contained xml code to measure the krpano rendering-time, the frame-time and calculating an average framerate - just insert that code as it is into any example:

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!