reorder seg_t struct a bit

fixes a 4byte hole so we can fit everything important into cacheline 1
even when compiled without HWRENDER this should be a better layout
checked per pahole
This commit is contained in:
alufolie91 committed 2026-05-14 18:56:55 +02:00
1 parent 6cc9026a85
commit a08a76b2c7
1 file changed
+10 -9
+10 -9
View File
@@ -531,11 +531,10 @@ typedef struct seg_s
vertex_t *v1;
vertex_t *v2;
INT32 side;
fixed_t offset;
angle_t angle;
#ifdef HWRENDER
floatvertex_t fv1; // v1 in floats - precalculated
floatvertex_t fv2; // v2 in floats - precalculated
#endif
side_t *sidedef;
line_t *linedef;
@@ -545,11 +544,13 @@ typedef struct seg_s
sector_t *frontsector;
sector_t *backsector;
INT32 side;
fixed_t length; // precalculated seg length
#ifdef HWRENDER
floatvertex_t fv1; // v1 in floats - precalculated
floatvertex_t fv2; // v2 in floats - precalculated
#endif
fixed_t offset;
angle_t angle;
polyobj_t *polyseg;
// Fake contrast calculated on level load