INNER CODE UNIT · C++

dt

cadaver/turso3d · Turso3DTest/Main.cpp:202

    dt = frameTimer.ElapsedUSec(true) * 0.000001f;

    if (profilerTimer.ElapsedMSec() >= 1000)
    {
        profilerOutput = profiler->OutputResults();
        profiler->BeginInterval();
        profilerTimer.Reset();
        // In web build, keep printing profiler output to stdout in case it's interesting, since we don't get it at program exit
#ifdef __EMSCRIPTEN__
        LOGRAWF("%s", profilerOutput.c_str());
#endif
    }

    profiler->BeginFrame();

    Update();
    PrepareRender();
    RenderAndPresent();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…