]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
make the endless loop run in 3 milliseconds (fixes BIH TracePoint)
[xonotic/darkplaces.git] / quakedef.h
index 5459a0fcd011cb3df116f90652bbfcb19d786a2b..12a953e45690ab4f895798318cb9f94fb850604e 100644 (file)
@@ -22,12 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef QUAKEDEF_H
 #define QUAKEDEF_H
 
-/// on UNIX platforms we need to define this so that video saving does not cause a SIGFSZ (file size) signal when a video clip exceeds 2GB
-#define _FILE_OFFSET_BITS 64
-
-// for cd_linux.c
-#define __KERNEL_STRICT_NAMES
-
 #if defined(__GNUC__) && (__GNUC__ > 2)
 #define DP_FUNC_PRINTF(n) __attribute__ ((format (printf, n, n+1)))
 #define DP_FUNC_PURE      __attribute__ ((pure))
@@ -113,8 +107,8 @@ extern char engineversion[128];
 #define        MAX_DECALSYSTEM_QUEUE   64
 #define        PAINTBUFFER_SIZE                512
 #define        MAX_BINDMAPS                    8
-#define        MAX_PARTICLES_INITIAL   32768
-#define        MAX_PARTICLES                   32768
+#define        MAX_PARTICLES_INITIAL   8192
+#define        MAX_PARTICLES                   8192
 #define        MAX_DECALS_INITIAL              1024
 #define        MAX_DECALS                              1024
 #define        MAX_ENITIES_INITIAL             256
@@ -449,15 +443,23 @@ extern cvar_t developer_loading;
 # if defined(__i386__)
 #  define DP_ARCH_STR          "686"
 #  define SSE_POSSIBLE
+#  ifdef __SSE__
+#   define SSE_PRESENT
+#  endif
+#  ifdef __SSE2__
+#   define SSE2_PRESENT
+#  endif
 # elif defined(__x86_64__)
 #  define DP_ARCH_STR          "x86_64"
 #  define SSE_PRESENT
+#  define SSE2_PRESENT
 # elif defined(__powerpc__)
 #  define DP_ARCH_STR          "ppc"
 # endif
 #elif defined(_WIN64)
 # define DP_ARCH_STR           "x86_64"
 # define SSE_PRESENT
+# define SSE2_PRESENT
 #elif defined(WIN32)
 # define DP_ARCH_STR           "x86"
 # define SSE_POSSIBLE
@@ -470,6 +472,7 @@ extern cvar_t developer_loading;
 #ifdef NO_SSE
 # undef SSE_PRESENT
 # undef SSE_POSSIBLE
+# undef SSE2_PRESENT
 #endif
 
 /// incremented every frame, never reset