MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / uTick

Method uTick

src/Core/Time/FramerateCounter.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 }
11
12 void FramerateCounter::uTick()
13 {
14 if (epoch() - m_lastTick <= 1000)
15 m_updatesBuffer++;
16 else
17 {
18 m_updatesCounter = m_updatesBuffer;
19 m_updatesBuffer = 0;
20 m_lastTick = epoch();
21 m_canUpdateFPS = true;
22 m_framerateCounter = m_framerateBuffer;
23 m_framerateBuffer = 0;
24 }
25 }
26
27 void FramerateCounter::loadFont(Graphics::Font& font)
28 {

Callers

nothing calls this directly

Calls 1

epochFunction · 0.85

Tested by

no test coverage detected