function runFrame()

in src/helper/timeline.ts [51:69]


function runFrame() {
    realFrameStartTime = NativeDate.now();
    frameIdx++;
    timelineTime += fixedFrameTime;
    const currentRafCbs = rafCbs;
    // Clear before calling the callbacks. raf may be registered in the callback
    rafCbs = [];
    currentRafCbs.forEach((cb) => {
        try {
            cb();
        }
        catch (e) {
            // Catch error to avoid following tasks.
            __VRT_LOG_ERRORS__(e.toString());
        }
    });
    flushTimeoutHandlers();
    flushIntervalHandlers();
}