Skip to content

Commit

Permalink
GS/HW: Don't bother trying to draw empty draws
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jan 11, 2024
1 parent 39c7f70 commit efae58d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,13 @@ void GSRendererHW::Draw()
m_r = m_r.blend8(m_r + GSVector4i::cxpr(0, 0, 1, 1), (m_r.xyxy() == m_r.zwzw()));
m_r = m_r.rintersect(context->scissor.in);

// Draw is too small, just skip it.
if (m_r.rempty())
{
GL_INS("Draw %d skipped due to having an empty rect");
return;
}

// We want to fix up the context if we're doing a double half clear, regardless of whether we do the CPU fill.
const bool is_possible_mem_clear = IsConstantDirectWriteMemClear();
if (!GSConfig.UserHacks_DisableSafeFeatures && is_possible_mem_clear)
Expand Down

0 comments on commit efae58d

Please sign in to comment.