mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
Make the ACS string pool reserve more strings
Due to only reserving a single new string when growing the string pool, any ACS code that generates lots of strings will eventually cause massive amounts of lag, to the point where ACSStringPool takes up *most of the execution time*. The proposed change fixes this issue.
This commit is contained in:
parent
5dd98669e4
commit
66d15dc215
1 changed files with 1 additions and 1 deletions
|
@ -1284,7 +1284,7 @@ int ACSStringPool::InsertString(FString &str, unsigned int h, unsigned int bucke
|
|||
}
|
||||
if (index == Pool.Size())
|
||||
{ // There were no free entries; make a new one.
|
||||
Pool.Reserve(1);
|
||||
Pool.Reserve(MIN_GC_SIZE);
|
||||
FirstFreeEntry++;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue