MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / run

Method run

engine/source/runtime/engine.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 void PiccoloEngine::clear() {}
40
41 void PiccoloEngine::run()
42 {
43 std::shared_ptr<WindowSystem> window_system = g_runtime_global_context.m_window_system;
44 ASSERT(window_system);
45
46 while (!window_system->shouldClose())
47 {
48 const float delta_time = calculateDeltaTime();
49 tickOneFrame(delta_time);
50 }
51 }
52
53 float PiccoloEngine::calculateDeltaTime()
54 {

Callers

nothing calls this directly

Calls 1

shouldCloseMethod · 0.80

Tested by

no test coverage detected