engine: zone: add small allocation optimization, reducing the size of <255 bytes allocations at the cost of less debug info

Keep it opt-in through a flag at pool alloc time.
Opt-in console related allocations, they are usually small enough strings.
This commit is contained in:
Alibek Omarov
2026-05-12 14:47:04 +05:00
parent 33b3cdb0f5
commit 0aac2e4d32
10 changed files with 382 additions and 185 deletions

View File

@@ -1546,7 +1546,7 @@ static int FS_StripIdiotRelativePath( const char *dllname, const char *gamefolde
return 0;
}
static poolhandle_t Mem_AllocPoolStub( const char *name, const char *filename, int fileline )
static poolhandle_t Mem_AllocPoolStub( const char *name, unsigned int flags, const char *filename, int fileline )
{
return (poolhandle_t)0xDEADC0DE;
}