MCPcopy Create free account
hub / github.com/Illation/ETEngine / Tick

Method Tick

Engine/source/EtCore/UpdateCycle/TickManager.cpp:252–270  ·  view source on GitHub ↗

--------------------------------- TickManager::Tick Start time and performance monitoring, then tick all tickable objects in order of their priority, and finally update the state of input

Source from the content-addressed store, hash-verified

250// Start time and performance monitoring, then tick all tickable objects in order of their priority, and finally update the state of input
251//
252void TickManager::Tick()
253{
254 BaseContext const* const context = ContextManager::GetInstance()->GetActiveContext();
255 if (context != nullptr)
256 {
257 // start new frame timer and performance
258 context->time->Update();
259 PERFORMANCE->StartFrameTimer();
260 }
261
262 // tick all objects
263 for (Tickable& tickableObject : m_Tickables)
264 {
265 tickableObject.tickable->OnTick();
266 }
267
268 // Update keystates
269 InputManager::GetInstance()->Update();
270}
271
272//---------------------------------
273// TickManager::EndTick

Callers

nothing calls this directly

Calls 4

GetActiveContextMethod · 0.80
StartFrameTimerMethod · 0.80
UpdateMethod · 0.45
OnTickMethod · 0.45

Tested by

no test coverage detected