Merge pull request #16696 from hrydgard/account-for-fast-bone-matrices

Account for the GPU cycle cost of loading bone matrices.
This commit is contained in:
Unknown W. Brackets authored and GitHub committed 2023-01-05 18:01:38 -08:00
commit 346d1a4089
1 file changed
+7
+7
View File
@@ -2771,6 +2771,13 @@ void GPUCommon::FastLoadBoneMatrix(u32 target) {
gstate_c.deferredVertTypeDirty |= uniformsToDirty;
}
gstate.FastLoadBoneMatrix(target);
cyclesExecuted += 2 * 14; // one to reset the counter, 12 to load the matrix, and a return.
if (coreCollectDebugStats) {
gpuStats.otherGPUCycles += 2 * 14;
gpuStats.gpuCommandsAtCallLevel[std::min(currentList->stackptr, 3)] += 14;
}
}
struct DisplayList_v1 {