MCPcopy Create free account
hub / github.com/OpenMW/openmw / processTimers

Method processTimers

components/lua/scriptscontainer.cpp:755–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

TEST_FFunction · 0.80
updateMethod · 0.80

Calls 1

protectedCallMethod · 0.45

Tested by 1

TEST_FFunction · 0.64