improve copy command list logging and usage

This commit is contained in:
cdozdil
2025-09-09 19:17:45 +03:00
parent 142af94219
commit e8a01ba89c
2 changed files with 16 additions and 4 deletions
+8 -2
View File
@@ -933,6 +933,8 @@ ID3D12GraphicsCommandList* FSRFG_Dx12::GetUICommandList(int index)
if (index < 0)
index = GetIndex();
LOG_DEBUG("index: {}", index);
if (!_uiCommandListResetted[index])
{
_uiCommandListResetted[index] = true;
@@ -1063,10 +1065,14 @@ bool FSRFG_Dx12::Present()
auto fIndex = GetIndex();
if (_uiCommandListResetted[fIndex])
{
LOG_DEBUG("Executing UI cmdList: {:X}", (size_t) _uiCommandList[fIndex]);
if (_uiCommandList[fIndex]->Close() == S_OK)
LOG_DEBUG("Executing _uiCommandList[fIndex][{}]: {:X}", fIndex, (size_t) _uiCommandList[fIndex]);
auto closeResult = _uiCommandList[fIndex]->Close();
if (closeResult == S_OK)
_gameCommandQueue->ExecuteCommandLists(1, (ID3D12CommandList**) &_uiCommandList[fIndex]);
else
LOG_ERROR("_uiCommandList[{}]->Close() error", fIndex, (UINT) closeResult);
_uiCommandListResetted[fIndex] = false;
}
+8 -2
View File
@@ -768,10 +768,14 @@ bool XeFG_Dx12::Present()
auto fIndex = GetIndex();
if (_uiCommandListResetted[fIndex])
{
LOG_DEBUG("Executing UI cmdList: {:X}", (size_t) _uiCommandList[fIndex]);
if (_uiCommandList[fIndex]->Close() == S_OK)
LOG_DEBUG("Executing _uiCommandList[fIndex][{}]: {:X}", fIndex, (size_t) _uiCommandList[fIndex]);
auto closeResult = _uiCommandList[fIndex]->Close();
if (closeResult == S_OK)
_gameCommandQueue->ExecuteCommandLists(1, (ID3D12CommandList**) &_uiCommandList[fIndex]);
else
LOG_ERROR("_uiCommandList[{}]->Close() error", fIndex, (UINT) closeResult);
_uiCommandListResetted[fIndex] = false;
}
@@ -941,6 +945,8 @@ ID3D12GraphicsCommandList* XeFG_Dx12::GetUICommandList(int index)
if (index < 0)
index = GetIndex();
LOG_DEBUG("index: {}", index);
if (!_uiCommandListResetted[index])
{
_uiCommandListResetted[index] = true;