mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
Using 100% CPU while effectively doing nothing is bad, mmkay?
git-svn-id: https://svn.eduke32.com/eduke32@95 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d99888e472
commit
ef2aa46a05
1 changed files with 8 additions and 1 deletions
|
@ -366,7 +366,14 @@ long initmultiplayersparms(long argc, char **argv)
|
||||||
long initmultiplayerscycle(void)
|
long initmultiplayerscycle(void)
|
||||||
{
|
{
|
||||||
long i, k;
|
long i, k;
|
||||||
|
extern long totalclock;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(1);
|
||||||
|
#else
|
||||||
|
usleep(1);
|
||||||
|
#endif
|
||||||
|
|
||||||
getpacket(&i,0);
|
getpacket(&i,0);
|
||||||
|
|
||||||
tims = GetTickCount();
|
tims = GetTickCount();
|
||||||
|
|
Loading…
Reference in a new issue