Account for the GPU cycle cost of loading bone matrices.

This could change timing slightly in games that use many of these, like
maybe God of War for example. We should probably get it in for 1.15 and
just handle any fallout.
This commit is contained in:
Henrik Rydgård 2023-01-01 20:35:04 +01:00
parent a4d3e0ead8
commit ee997d1353

View file

@ -2762,6 +2762,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 {