MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Update

Method Update

Source/Engine/Platform/Base/WindowsManager.cpp:55–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void WindowsManagerService::Update()
56{
57 PROFILE_CPU();
58
59 // Update windows
60 const float deltaTime = Time::Update.UnscaledDeltaTime.GetTotalSeconds();
61 WindowsManager::WindowsLocker.Lock();
62 Array<Window*, InlinedAllocation<32>> windows;
63 windows.Add(WindowsManager::Windows);
64 for (Window* win : windows)
65 {
66 if (win->IsVisible())
67 win->OnUpdate(deltaTime);
68 }
69 WindowsManager::WindowsLocker.Unlock();
70}
71
72void WindowsManagerService::Dispose()
73{

Callers

nothing calls this directly

Calls 5

LockMethod · 0.80
UnlockMethod · 0.80
AddMethod · 0.45
IsVisibleMethod · 0.45
OnUpdateMethod · 0.45

Tested by

no test coverage detected