mirror of https://github.com/PCSX2/pcsx2.git
GS-TC: Only reset age on new Tex in RT targets.
Caused huge GS usage on Urban Reign due to old target.
This commit is contained in:
parent
ff3c22fc2b
commit
a95492f7a0
|
@ -1021,7 +1021,10 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
|
|||
const SurfaceOffset so = ComputeSurfaceOffset(off, r, t);
|
||||
if (so.is_valid)
|
||||
{
|
||||
t->m_age = 0;
|
||||
// Don't reset the age on old targets, possibly misdetection, it upsets Urban Reign.
|
||||
if (t->m_age < 30)
|
||||
t->m_age = 0;
|
||||
|
||||
t->m_dirty.push_back(GSDirtyRect(so.b2a_offset, psm, bw));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue