You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
CommandQueueMT: Pre-allocate memory to avoid a bunch of allocations at startup
This commit is contained in:
@@ -42,6 +42,7 @@ void CommandQueueMT::unlock() {
|
||||
}
|
||||
|
||||
CommandQueueMT::CommandQueueMT() {
|
||||
command_mem.reserve(DEFAULT_COMMAND_MEM_SIZE_KB * 1024);
|
||||
}
|
||||
|
||||
CommandQueueMT::~CommandQueueMT() {
|
||||
|
||||
Reference in New Issue
Block a user