From b8e4404ea229a40defa7515877a892eab5d9acb9 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 24 Mar 2006 21:43:43 +0000 Subject: Adjust anti-CPU-hogging sleep times. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 440 --- src/net_gui.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/net_gui.c') diff --git a/src/net_gui.c b/src/net_gui.c index 2e60b4d0..b6cb4c6c 100644 --- a/src/net_gui.c +++ b/src/net_gui.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: net_gui.c 416 2006-03-11 21:28:21Z fraggle $ +// $Id: net_gui.c 440 2006-03-24 21:43:43Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -173,22 +173,14 @@ static void DrawScreen(void) void NET_WaitForStart(void) { - int last_draw_time; - TXT_Init(); I_SetWindowCaption(); I_SetWindowIcon(); - last_draw_time = -1; - while (net_waiting_for_start) { - if (I_GetTimeMS() > last_draw_time + 50) - { - ProcessEvents(); - DrawScreen(); - last_draw_time = I_GetTimeMS(); - } + ProcessEvents(); + DrawScreen(); NET_CL_Run(); NET_SV_Run(); @@ -198,7 +190,7 @@ void NET_WaitForStart(void) I_Error("Disconnected from server"); } - I_Sleep(1); + I_Sleep(50); } TXT_Shutdown(); -- cgit v1.2.3