From 06e476e8c84383af9e193848c7514115fdd1fe27 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 6 Nov 2024 00:38:29 +0300 Subject: [PATCH] engine: reorder mstudiocache_t fields for better memory efficiency --- engine/common/mod_studio.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/engine/common/mod_studio.c b/engine/common/mod_studio.c index 7b1d55ed..667b8dfc 100644 --- a/engine/common/mod_studio.c +++ b/engine/common/mod_studio.c @@ -24,17 +24,17 @@ typedef int (*STUDIOAPI)( int, sv_blending_interface_t**, server_studio_api_t*, typedef struct mstudiocache_s { - float frame; - int sequence; - vec3_t angles; - vec3_t origin; - vec3_t size; - byte controller[4]; - byte blending[2]; - model_t *model; - uint current_hull; - uint current_plane; - uint numhitboxes; + model_t *model; + float frame; + int sequence; + vec3_t angles; + vec3_t origin; + vec3_t size; + byte controller[4]; + byte blending[2]; + uint current_hull; + uint current_plane; + uint numhitboxes; } mstudiocache_t; #define STUDIO_CACHESIZE 16