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:
refractionpcsx2 2022-11-20 17:54:33 +00:00
parent ff3c22fc2b
commit a95492f7a0
1 changed files with 4 additions and 1 deletions

View File

@ -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));
}
}