| 534 | } |
| 535 | |
| 536 | void EngineWorker::syncSimulationWithRenderingIfDesired() |
| 537 | { |
| 538 | if (_syncSimulationWithRendering && _isSimulationRunning) { |
| 539 | for (int i = 0; i < _syncSimulationWithRenderingRatio; ++i) { |
| 540 | calcTimesteps(1); |
| 541 | measureTPS(); |
| 542 | slowdownTPS(); |
| 543 | } |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | void EngineWorker::waitAndAllowAccess(std::chrono::microseconds const& duration) |
| 548 | { |
nothing calls this directly
no outgoing calls
no test coverage detected