mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
kill the usleep. I don't know why, nor do I really care, but it causes qw to
not run at full speed even though it shouldn't.
This commit is contained in:
parent
d1fcfd1939
commit
70194567fe
1 changed files with 0 additions and 7 deletions
|
@ -45,9 +45,6 @@ static const char rcsid[] =
|
||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_WINSOCK_H
|
#ifdef HAVE_WINSOCK_H
|
||||||
# include <winsock.h>
|
# include <winsock.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1462,10 +1459,6 @@ Host_Frame (float time)
|
||||||
|
|
||||||
// decide the simulation time
|
// decide the simulation time
|
||||||
if ((sleeptime = Host_SimulationTime (time)) != 0) {
|
if ((sleeptime = Host_SimulationTime (time)) != 0) {
|
||||||
#ifdef HAVE_USLEEP
|
|
||||||
if (sleeptime > 0.002) // minimum sleep time
|
|
||||||
usleep ((unsigned long)(sleeptime * 1000000 / 2));
|
|
||||||
#endif
|
|
||||||
return; // framerate is too high
|
return; // framerate is too high
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue