Skip to content

Commit

Permalink
Limit detailed timing events to counters.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernhar committed Jun 15, 2022
1 parent 3997578 commit 133f353
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gpgmm/d3d12/ResourceAllocatorD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,9 @@ namespace gpgmm { namespace d3d12 {
mDebugAllocator->AddLiveAllocation(*resourceAllocationOut);
#endif

// Update the current usage counters.
if (mUseDetailedTimingEvents) {
// Update the current usage counters.
GetInfoInternal();
GPGMM_TRACE_EVENT_OBJECT_SNAPSHOT((*resourceAllocationOut)->GetMemory(),
(*resourceAllocationOut)->GetMemory()->GetInfo());
}

GPGMM_TRACE_EVENT_OBJECT_SNAPSHOT(*resourceAllocationOut,
Expand Down

0 comments on commit 133f353

Please sign in to comment.