| 753 | } |
| 754 | |
| 755 | void ScriptsContainer::processTimers(double simulationTime, double gameTime) |
| 756 | { |
| 757 | mLua.protectedCall([&](LuaView& view) { |
| 758 | LoadedData& data = ensureLoaded(); |
| 759 | updateTimerQueue(data.mSimulationTimersQueue, simulationTime); |
| 760 | updateTimerQueue(data.mGameTimersQueue, gameTime); |
| 761 | }); |
| 762 | } |
| 763 | |
| 764 | static constexpr float instructionCountAvgCoef = 1.0f / 30; // averaging over approximately 30 frames |
| 765 |