]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.h
if a skyboxskinframe is missing, don't draw that sky surface (fixes crash if some...
[xonotic/darkplaces.git] / world.h
diff --git a/world.h b/world.h
index 4dad70ba435fde58ec0c08acf992726db45bc213..fbf9e8351381ec7cb28cc8fb119ab36513554648 100644 (file)
--- a/world.h
+++ b/world.h
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define MOVE_WORLDONLY  3
 #define MOVE_HITMODEL   4
 
-#define AREA_GRID 512
+#define AREA_GRID 128
 #define AREA_GRIDNODES (AREA_GRID * AREA_GRID)
 
 typedef struct link_s
@@ -50,6 +50,9 @@ typedef struct world_physics_s
        int ode_iterations;
        // actual step (server frametime / ode_iterations)
        vec_t ode_step;
+       // stats
+       int ode_numobjects; // total objects cound
+       int ode_activeovjects; // active objects count
        // max velocity for a 1-unit radius object at current step to prevent
        // missed collisions
        vec_t ode_movelimit;