INNER CODE UNIT · JavaScript

timerUs

electronicarts/pbmpm · src/main.js:239

            const timerUs = gpuContext.movingAverageTimeStamps[name] / 1e3;
            timingHtml += `<tr><td style="font-family: monospace;">${name}</td><td>${(timerUs).toFixed(0)}μs</td></tr>\n`

            totalSimMs += timerUs/1e3;
        }

        timingHtml += `<tr><td><b>Total Sim</b></td><td>${(totalSimMs).toFixed(1)}ms</td></tr>\n`

        timingHtml += `</table>`

        document.getElementById('timingStats').innerHTML = timingHtml;
        gpuContext.timingStatsDirty = false;
    }

    function selectIf(cond)
    {
        if(!!cond)
        {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…