ref: 8ae888bc499914bd20bd663159222e7f3100e788
parent: 0ebadacc8c2a6d5a2b7e3d6160172338f62618a3
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Nov 1 20:11:19 EDT 2023
msurface_t: attempt to reduce its size in bytes
--- a/model.h
+++ b/model.h
@@ -86,28 +86,24 @@
typedef struct msurface_s
{
- int visframe; // should be drawn when node is crossed
-
- int dlightframe;
- int dlightbits;
-
mplane_t *plane;
- int flags;
+ mtexinfo_t *texinfo;
+ byte *samples; // [numstyles*surfsize]
- int firstedge; // look up in model->surfedges[], negative numbers
- int numedges; // are backwards edges
-
// surface generation data
struct surfcache_s *cachespots[MIPLEVELS];
+ int visframe; // should be drawn when node is crossed
+ int dlightframe;
+ int dlightbits;
+ int flags;
+ int firstedge; // look up in model->surfedges[], negative numbers
+ int numedges; // are backwards edges
int texturemins[2];
int extents[2];
- mtexinfo_t *texinfo;
-
// lighting info
byte styles[MAXLIGHTMAPS];
- byte *samples; // [numstyles*surfsize]
} msurface_t;
typedef struct mnode_s