Skip to content

Fix REGISTRY_CHECK

terencehill requested to merge terencehill/registry_check into master

Fix REGISTRY_CHECK not checking all elements of a huge registry like the Notifications registry.

Code is optimized to have basically the same performance as before while adding string length checks.

It gets rid of this warning on map start:

server VM warning: 12 of 16383 bytes available, will truncate 21 byte string "INFO_ITEM_WEAPON_DROP"
s223066: ce_startsolid:721: IFNOT      GLOBAL48521, statement 223078
s223067: ce_startsolid:721: STORE_F    GLOBAL48540, GLOBAL48522
s223068: ce_startsolid:721: STORE_ENT  GLOBAL48521, GLOBAL48522
s223069: ce_startsolid:721: FIELD_ENT  GLOBAL48521, .enemy (=.enemy), GLOBAL48541
s223070: ce_startsolid:721: FIELD_S    GLOBAL48522, .registered_id (=.registered_id), GLOBAL10
s223071: ce_startsolid:721: STORE_S    GLOBAL48539, GLOBAL4
s223072: ce_startsolid:721: STORE_S    GLOBAL27173, GLOBAL7
s223073: ce_startsolid:721: CALL3      strcat (=strcat())
ce_startsolid:721 : _static_Registry_check_Notifications_1 : statement 41
./ecs/systems/sv_physics.qc:721 : __static_init_1 : statement 274
            :834 : __spawnfunc_worldspawn : statement 146
            :216 : StartFrame : statement 10

Merge request reports