mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 13:24:10 +01:00
[dxvk] Reorder command list reset operations by importance
This commit is contained in:
parent
7491c06389
commit
c3ebf4658c
@ -121,13 +121,23 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
void DxvkCommandList::reset() {
|
void DxvkCommandList::reset() {
|
||||||
m_statCounters.reset();
|
// Signal resources and events to
|
||||||
|
// avoid stalling main thread
|
||||||
|
m_eventTracker.reset();
|
||||||
|
m_resources.reset();
|
||||||
|
|
||||||
|
// Recycle heavy Vulkan objects
|
||||||
|
m_descriptorPoolTracker.reset();
|
||||||
|
|
||||||
|
// Return buffer memory slices
|
||||||
m_bufferTracker.reset();
|
m_bufferTracker.reset();
|
||||||
|
|
||||||
|
// Return query and event handles
|
||||||
m_gpuQueryTracker.reset();
|
m_gpuQueryTracker.reset();
|
||||||
m_gpuEventTracker.reset();
|
m_gpuEventTracker.reset();
|
||||||
m_eventTracker.reset();
|
|
||||||
m_descriptorPoolTracker.reset();
|
// Less important stuff
|
||||||
m_resources.reset();
|
m_statCounters.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user