Skip to content

Commit 166beb2

Browse files
committed
Don't count 0-lookup PSOs against the hit/miss rate
1 parent 930304a commit 166beb2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

D3D12CacheListener.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ void ParseManifestPayload(PEVENT_RECORD pEvent) {
109109
else if (propName == L"NumDynamicCacheStores") stats.NumDynamicCacheStores = value;
110110
}
111111

112+
if (stats.NumRequiredLookups == 0)
113+
return;
114+
112115
DWORD pid = pEvent->EventHeader.ProcessId;
113116
int idx = -1;
114117
if (pEvent->EventHeader.EventDescriptor.Id == 161) idx = 0;

0 commit comments

Comments
 (0)