GPU: Cull off-screen sprites/lines

And further optimizations to culling in general.
This commit is contained in:
Stenzek
2024-07-05 19:38:54 +10:00
parent bc73dacea4
commit ed5a99066f
5 changed files with 91 additions and 115 deletions

View File

@ -1635,7 +1635,7 @@ void GPU::CopyVRAM(u32 src_x, u32 src_y, u32 dst_x, u32 dst_y, u32 width, u32 he
void GPU::SetClampedDrawingArea()
{
if (!IsDrawingAreaIsValid()) [[unlikely]]
if (m_drawing_area.left > m_drawing_area.right || m_drawing_area.top > m_drawing_area.bottom) [[unlikely]]
{
m_clamped_drawing_area = GSVector4i::zero();
return;