Added extra log info

This commit is contained in:
cdozdil
2025-07-12 18:45:28 +03:00
parent 35e03aec10
commit 51e115ab81
+14 -12
View File
@@ -119,7 +119,8 @@ typedef struct HeapInfo
else
_trackedResources[setInfo.buffer] = { &info[index] };
LOG_TRACK("Add resource: {:X} to info: {:X}", (size_t) setInfo.buffer, (size_t) &info[index]);
LOG_TRACK("Add resource: {:X} to info: {:X}, Res: {}x{}", (size_t) setInfo.buffer, (size_t) &info[index],
setInfo.width, setInfo.height);
_trMutex.unlock();
}
@@ -146,7 +147,8 @@ typedef struct HeapInfo
else
_trackedResources[setInfo.buffer] = { &info[index] };
LOG_TRACK("Add resource: {:X} to info: {:X}", (size_t) setInfo.buffer, (size_t) &info[index]);
LOG_TRACK("Add resource: {:X} to info: {:X}, Res: {}x{}", (size_t) setInfo.buffer, (size_t) &info[index],
setInfo.width, setInfo.height);
_trMutex.unlock();
}
@@ -159,11 +161,11 @@ typedef struct HeapInfo
if (index >= numDescriptors)
return;
_trMutex.lock();
if (info[index].buffer != nullptr)
{
_trMutex.lock();
LOG_TRACK("Resource: {:X}", (size_t) info[index].buffer);
LOG_TRACK("Resource: {:X}, Res: {}x{}", (size_t) info[index].buffer, info[index].width, info[index].height);
if (_trackedResources.contains(info[index].buffer))
{
@@ -179,10 +181,10 @@ typedef struct HeapInfo
}
}
}
_trMutex.unlock();
}
_trMutex.unlock();
info[index].buffer = nullptr;
info[index].lastUsedFrame = 0;
}
@@ -194,11 +196,11 @@ typedef struct HeapInfo
if (index >= numDescriptors)
return;
_trMutex.lock();
if (info[index].buffer != nullptr)
{
_trMutex.lock();
LOG_TRACK("Resource: {:X}", (size_t) info[index].buffer);
LOG_TRACK("Resource: {:X}, Res: {}x{}", (size_t) info[index].buffer, info[index].width, info[index].height);
if (_trackedResources.contains(info[index].buffer))
{
@@ -214,10 +216,10 @@ typedef struct HeapInfo
}
}
}
_trMutex.unlock();
}
_trMutex.unlock();
info[index].buffer = nullptr;
info[index].lastUsedFrame = 0;
}