Changeset View
Changeset View
Standalone View
Standalone View
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(); | |||||
} | |||||
} | |||||
Silier: inline this | |||||
Done Inline Actionsoh yeah, why didn't i do that :p wraitii: oh yeah, why didn't i do that :p | |||||
g_Profiler.Frame(); | g_Profiler.Frame(); | ||||
Not Done Inline Actionswhy the scope ? Stan: why the scope ? | |||||
Not Done Inline ActionsBecause of PROFILE3("swap buffers"), it measure the current block. vladislavbelov: Because of `PROFILE3("swap buffers")`, it measure the current block. | |||||
g_GameRestarted = false; | g_GameRestarted = false; | ||||
LimitFPS(); | LimitFPS(); | ||||
} | } | ||||
static void NonVisualFrame() | static void NonVisualFrame() | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
inline this