| 53 | } |
| 54 | |
| 55 | void 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 | |
| 72 | void WindowsManagerService::Dispose() |
| 73 | { |