Bump handle limit to 1MB.

This bumps the handle bits to 20 and reduces the serial/cookie bits to
12. A warning is emitted if a single owner creates more than 100k
handles.

Tested on mock srcds with sm_dump_handles.
This commit is contained in:
David Anderson
2021-10-26 07:05:34 -10:00
parent 92ce0fe814
commit cab60f7385
3 changed files with 44 additions and 12 deletions
+5 -3
View File
@@ -49,9 +49,11 @@ namespace SourceMod
{
struct IdentityToken_t
{
Handle_t ident;
void *ptr;
IdentityType_t type;
Handle_t ident = 0;
void *ptr = nullptr;
IdentityType_t type = 0;
size_t num_handles = 0;
bool warned_handle_usage = false;
};
};