GPU/HW: Fix incorrect dirty rect union

Reduces GPU usage during screen waves effect in Um Jammer Lammy from
over 70% down to 3% on my 7900GRE at 9x.
This commit is contained in:
Stenzek 2024-07-14 17:44:22 +10:00
parent 5d4f6e44d2
commit a5a320720a
No known key found for this signature in database

View file

@ -659,7 +659,7 @@ void GPU_HW::AddDrawnRectangle(const GSVector4i rect)
// Normally, we would check for overlap here. But the GPU's texture cache won't actually reload until the page // Normally, we would check for overlap here. But the GPU's texture cache won't actually reload until the page
// changes, or it samples a larger region, so we can get away without doing so. This reduces copies considerably in // changes, or it samples a larger region, so we can get away without doing so. This reduces copies considerably in
// games like Mega Man Legends 2. // games like Mega Man Legends 2.
m_vram_dirty_draw_rect = m_vram_dirty_draw_rect.runion(m_clamped_drawing_area); m_vram_dirty_draw_rect = m_vram_dirty_draw_rect.runion(rect);
} }
void GPU_HW::AddUnclampedDrawnRectangle(const GSVector4i rect) void GPU_HW::AddUnclampedDrawnRectangle(const GSVector4i rect)