Skip to content

Commit af59777

Browse files
performance: Push cmd buffer alloc to the front of reusable list
Signed-off-by: Lukasz Jobczyk <[email protected]>
1 parent c238f73 commit af59777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/source/command_container/cmdcontainer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void CommandContainer::handleCmdBufferAllocations(size_t startIndex) {
318318
cmdBufferAllocations[i]->releaseUsageInOsContext(osContextId);
319319
}
320320

321-
reusableAllocationList->pushTailOne(*cmdBufferAllocations[i]);
321+
reusableAllocationList->pushFrontOne(*cmdBufferAllocations[i]);
322322
} else {
323323
this->device->getMemoryManager()->freeGraphicsMemory(cmdBufferAllocations[i]);
324324
}

0 commit comments

Comments
 (0)