| 529 | } |
| 530 | |
| 531 | JBool task_canRun() |
| 532 | { |
| 533 | bool timeLimiter = s_enableTimeLimiter && !TFE_Settings::getGraphicsSettings()->useSmoothDeltaTime; |
| 534 | if (s_taskCount && timeLimiter) |
| 535 | { |
| 536 | const f64 time = TFE_System::getTime(); |
| 537 | if (time - s_prevTime < s_minIntervalInSec) |
| 538 | { |
| 539 | return JFALSE; |
| 540 | } |
| 541 | } |
| 542 | return JTRUE; |
| 543 | } |
| 544 | |
| 545 | void task_updateTime() |
| 546 | { |
no test coverage detected