mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
- remove align flags from gcc command line
- only use usleep if HAVE_USLEEP is defined
This commit is contained in:
parent
5369e82456
commit
920de43af9
2 changed files with 6 additions and 2 deletions
|
@ -137,6 +137,8 @@ else
|
|||
AC_C_BIGENDIAN
|
||||
fi
|
||||
|
||||
AC_CHECK_FUNCS(usleep)
|
||||
|
||||
AC_MSG_CHECKING(that fnmatch is in fnmatch.h)
|
||||
AC_TRY_COMPILE(
|
||||
[#include "fnmatch.h"],
|
||||
|
@ -1125,9 +1127,9 @@ if test "x$optimize" = xyes; then
|
|||
case "${host_cpu}" in
|
||||
i?86)
|
||||
if test "x$HAVE_AMD" = "xyes"; then
|
||||
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
MORE_CFLAGS="-march=k6"
|
||||
else
|
||||
MORE_CFLAGS="-march=${host_cpu} -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
MORE_CFLAGS="-march=${host_cpu}"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -1456,8 +1456,10 @@ Host_Frame (float time)
|
|||
|
||||
// decide the simulation time
|
||||
if ((sleeptime = Host_SimulationTime (time)) != 0) {
|
||||
#ifdef HAVE_USLEEP
|
||||
if (sleeptime > 0.01) // minimum sleep time
|
||||
usleep((unsigned long)((sleeptime - 0.001) * 1000000));
|
||||
#endif
|
||||
return; // framerate is too high
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue