Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/main.cpp
Show First 20 Lines • Show All 405 Lines • ▼ Show 20 Lines | #endif | ||||
g_UserReporter.Update(); | g_UserReporter.Update(); | ||||
g_Console->Update(realTimeSinceLastFrame); | g_Console->Update(realTimeSinceLastFrame); | ||||
ogl_WarnIfError(); | ogl_WarnIfError(); | ||||
if (g_SoundManager) | if (g_SoundManager) | ||||
g_SoundManager->IdleTask(); | g_SoundManager->IdleTask(); | ||||
if (ShouldRender()) | |||||
{ | |||||
Render(); | Render(); | ||||
{ | |||||
PROFILE3("swap buffers"); | |||||
SDL_GL_SwapWindow(g_VideoMode.GetWindow()); | |||||
ogl_WarnIfError(); | |||||
} | |||||
} | |||||
g_Profiler.Frame(); | g_Profiler.Frame(); | ||||
g_GameRestarted = false; | g_GameRestarted = false; | ||||
LimitFPS(); | LimitFPS(); | ||||
} | } | ||||
static void NonVisualFrame() | static void NonVisualFrame() | ||||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator