So 11 gains more speed? That's interesting.
I am away from my computer now, but if you have any of these games, could you check if this breaks them? Mimana, ClaDun, 30 Minute Hero, Patchwork Heroes, Senjou no Valkyria 3, Valkyria Chronicles 2, and Crystal Defenders. They had issues with the vertex cache (corrupt graphics) before that commit. I'll test them later if not.
If you can try more, what if you revert the changes and then change this line:
To:
Also, I'd be curious to know if it helps speed to change that to any of (instead of the above):
It might not change much, and in the worst case it might cause additional corruption... but in the best case it may improve speed.
-[Unknown]
I am away from my computer now, but if you have any of these games, could you check if this breaks them? Mimana, ClaDun, 30 Minute Hero, Patchwork Heroes, Senjou no Valkyria 3, Valkyria Chronicles 2, and Crystal Defenders. They had issues with the vertex cache (corrupt graphics) before that commit. I'll test them later if not.
If you can try more, what if you revert the changes and then change this line:
Code:
vai->framesUntilNextFullHash = std::min(16, vai->numFrames);To:
Code:
// If we've already drawn several times in this frame, it's probably safe.
if (vai->numDraws > 11)
vai->framesUntilNextFullHash = std::min(16, vai->numDraws);
else
vai->framesUntilNextFullHash = std::min(16, vai->numFrames);Also, I'd be curious to know if it helps speed to change that to any of (instead of the above):
Code:
vai->framesUntilNextFullHash = std::min(128, vai->numFrames);Code:
// If we've already drawn several times in this frame, it's probably safe.
if (vai->numDraws > 16)
vai->framesUntilNextFullHash = std::min(64, vai->numDraws);
else
vai->framesUntilNextFullHash = std::min(64, vai->numFrames);It might not change much, and in the worst case it might cause additional corruption... but in the best case it may improve speed.
-[Unknown]

