commit 4987a479c986206dc2ea0e5e141e89c67a2c963a
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sat Feb 27 23:41:58 2016 -0500
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sat Feb 27 23:41:58 2016 -0500
doom: Don't run tics until graphics initialized.
Running tics before I_InitGraphics() is called causes the music to start
playing while the screen is still being initialized, and this doesn't
look nice. Instead, wait until the video is fully ready before we start
playing music or running any tics.
---
src/doom/d_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 224164e7..dfa9c782 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -427,8 +427,6 @@ void D_DoomLoop (void)
main_loop_started = true;
- TryRunTics();
-
I_SetWindowTitle(gamedescription);
I_GraphicsCheckCommandLine();
I_InputCheckCommandLine();
@@ -436,6 +434,8 @@ void D_DoomLoop (void)
I_InitGraphics();
V_EnableLoadingDisk(SCREENWIDTH - LOADING_DISK_W, SCREENHEIGHT - LOADING_DISK_H);
+ TryRunTics();
+
V_RestoreBuffer();
R_ExecuteSetViewSize();