private static void GameLoop() { while (renderWindow.IsOpen()) { float deltaTime = Clock.AsMillisecond(clock.Restart()); renderWindow.DispatchEvents(); UpdateFrame(deltaTime); DrawFrame(); } }