diff --git a/src/dxvk/dxvk_device.cpp b/src/dxvk/dxvk_device.cpp index 4c4f57e6..477a3126 100644 --- a/src/dxvk/dxvk_device.cpp +++ b/src/dxvk/dxvk_device.cpp @@ -160,12 +160,9 @@ namespace dxvk { DxvkStatCounters DxvkDevice::getStatCounters() { - DxvkMemoryStats mem = m_objects.memoryManager().getMemoryStats(); DxvkPipelineCount pipe = m_objects.pipelineManager().getPipelineCount(); DxvkStatCounters result; - result.setCtr(DxvkStatCounter::MemoryAllocated, mem.memoryAllocated); - result.setCtr(DxvkStatCounter::MemoryUsed, mem.memoryUsed); result.setCtr(DxvkStatCounter::PipeCountGraphics, pipe.numGraphicsPipelines); result.setCtr(DxvkStatCounter::PipeCountCompute, pipe.numComputePipelines); result.setCtr(DxvkStatCounter::PipeCompilerBusy, m_objects.pipelineManager().isCompilingShaders()); diff --git a/src/dxvk/dxvk_memory.cpp b/src/dxvk/dxvk_memory.cpp index 365cc533..52fee77e 100644 --- a/src/dxvk/dxvk_memory.cpp +++ b/src/dxvk/dxvk_memory.cpp @@ -232,20 +232,6 @@ namespace dxvk { } - DxvkMemoryStats DxvkMemoryAllocator::getMemoryStats() { - std::lock_guard lock(m_mutex); - - DxvkMemoryStats totalStats; - - for (size_t i = 0; i < m_memProps.memoryHeapCount; i++) { - totalStats.memoryAllocated += m_memHeaps[i].stats.memoryAllocated; - totalStats.memoryUsed += m_memHeaps[i].stats.memoryUsed; - } - - return totalStats; - } - - DxvkMemory DxvkMemoryAllocator::tryAlloc( const VkMemoryRequirements* req, const VkMemoryDedicatedAllocateInfoKHR* dedAllocInfo, diff --git a/src/dxvk/dxvk_memory.h b/src/dxvk/dxvk_memory.h index 021a1c1d..8d365b48 100644 --- a/src/dxvk/dxvk_memory.h +++ b/src/dxvk/dxvk_memory.h @@ -262,15 +262,6 @@ namespace dxvk { VkMemoryPropertyFlags flags, float priority); - /** - * \brief Queries memory stats - * - * Returns the total amount of device memory - * allocated and used by all available heaps. - * \returns Global memory stats - */ - DxvkMemoryStats getMemoryStats(); - /** * \brief Queries memory stats * diff --git a/src/dxvk/dxvk_stats.h b/src/dxvk/dxvk_stats.h index 7fd5e9a7..77aa6b8f 100644 --- a/src/dxvk/dxvk_stats.h +++ b/src/dxvk/dxvk_stats.h @@ -14,9 +14,6 @@ namespace dxvk { CmdDrawCalls, ///< Number of draw calls CmdDispatchCalls, ///< Number of compute calls CmdRenderPassCount, ///< Number of render passes - MemoryAllocationCount, ///< Number of memory allocations - MemoryAllocated, ///< Amount of memory allocated - MemoryUsed, ///< Amount of memory used PipeCountGraphics, ///< Number of graphics pipelines PipeCountCompute, ///< Number of compute pipelines PipeCompilerBusy, ///< Boolean indicating compiler activity