mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 10:51:06 +00:00
Avoid full rehashes when failures are frequent.
This commit is contained in:
parent
c8e6a809c3
commit
456b2613f0
@ -661,8 +661,13 @@ void TransformDrawEngine::DoFlush() {
|
||||
vai->numFrames++;
|
||||
}
|
||||
if (vai->drawsUntilNextFullHash == 0) {
|
||||
u32 newHash = ComputeHash();
|
||||
if (newHash != vai->hash) {
|
||||
// Let's try to skip a full hash if mini would fail.
|
||||
const u32 newMiniHash = ComputeMiniHash();
|
||||
u32 newHash = vai->hash;
|
||||
if (newMiniHash == vai->minihash) {
|
||||
newHash = ComputeHash();
|
||||
}
|
||||
if (newMiniHash != vai->minihash || newHash != vai->hash) {
|
||||
MarkUnreliable(vai);
|
||||
DecodeVerts();
|
||||
goto rotateVBO;
|
||||
|
Loading…
Reference in New Issue
Block a user