mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05: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