mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 22:54:16 +01:00
[dxvk] Add GPU idle time to stat counters
This commit is contained in:
parent
3d86ecd94d
commit
5bb20cceb6
@ -185,6 +185,7 @@ namespace dxvk {
|
||||
result.setCtr(DxvkStatCounter::PipeCountGraphics, pipe.numGraphicsPipelines);
|
||||
result.setCtr(DxvkStatCounter::PipeCountCompute, pipe.numComputePipelines);
|
||||
result.setCtr(DxvkStatCounter::PipeCompilerBusy, m_pipelineManager->isCompilingShaders());
|
||||
result.setCtr(DxvkStatCounter::GpuIdleTicks, m_submissionQueue.gpuIdleTicks());
|
||||
|
||||
std::lock_guard<sync::Spinlock> lock(m_statLock);
|
||||
result.merge(m_statCounters);
|
||||
|
@ -22,6 +22,7 @@ namespace dxvk {
|
||||
PipeCompilerBusy, ///< Boolean indicating compiler activity
|
||||
QueueSubmitCount, ///< Number of command buffer submissions
|
||||
QueuePresentCount, ///< Number of present calls / frames
|
||||
GpuIdleTicks, ///< GPU idle time in microseconds
|
||||
NumCounters, ///< Number of counters available
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user