mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
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:
parent
5d4f6e44d2
commit
a5a320720a
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue