mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
a4d3e0ead8
commit
ee997d1353
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue