MCPcopy Create free account
hub / github.com/MethanePowered/MethaneKit / Update

Method Update

Modules/Graphics/App/Sources/Methane/Graphics/AppBase.cpp:213–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213bool AppBase::Update()
214{
215 META_FUNCTION_TASK();
216 if (Platform::App::IsMinimized())
217 return false;
218
219 META_LOG("\n========================== FRAME {} UPDATING =========================",
220 m_context.IsInitialized() ? m_context.GetFrameIndex() : 0U);
221
222 Rhi::ISystem::Get().CheckForChanges();
223
224 // Update HUD info in window title
225 if (m_settings.show_hud_in_window_title &&
226 m_title_update_timer.GetElapsedSecondsD() >= g_title_update_interval_sec)
227 {
228 UpdateWindowTitle();
229 m_title_update_timer.Reset();
230 }
231
232 GetAnimations().Update();
233 return true;
234}
235
236bool AppBase::Render()
237{

Callers 1

ResizeMethod · 0.45

Calls 5

GetElapsedSecondsDMethod · 0.80
IsInitializedMethod · 0.45
GetFrameIndexMethod · 0.45
CheckForChangesMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected