()
| 37 | let timelineTime = 0; |
| 38 | |
| 39 | function runFrame() { |
| 40 | realFrameStartTime = NativeDate.now(); |
| 41 | frameIdx++; |
| 42 | timelineTime += FIXED_FRAME_TIME; |
| 43 | const currentRafCbs = rafCbs; |
| 44 | // Clear before calling the callbacks. raf may be registered in the callback |
| 45 | rafCbs = []; |
| 46 | currentRafCbs.forEach((cb) => { |
| 47 | try { |
| 48 | cb(); |
| 49 | } |
| 50 | catch (e) { |
| 51 | // Catch error to avoid following tasks. |
| 52 | __VRT_LOG_ERRORS__(e.toString()); |
| 53 | } |
| 54 | }); |
| 55 | flushTimeoutHandlers(); |
| 56 | flushIntervalHandlers(); |
| 57 | } |
| 58 | function timelineLoop() { |
| 59 | if (!__VRT_TIMELINE_PAUSED__) { |
| 60 | runFrame(); |
no test coverage detected
searching dependent graphs…