Skip to content

Commit

Permalink
GS: PreRound Sprite Hack - Don't round recursive draws.
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jul 1, 2022
1 parent 680e0e5 commit 2a96497
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pcsx2/GS/GSState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,19 @@ void GSState::FlushPrim()
GSVertex* v1 = &m_vertex.buff[i];
GSVertex* v2 = &m_vertex.buff[i + 1];


if ((i + 2) < m_vertex.tail)
{
GSVertex* nv1 = &m_vertex.buff[i + 2];
GSVertex* nv2 = &m_vertex.buff[i + 3];

GSVector4i cur_rect = { nv1->U >> 4, nv1->V >> 4, nv2->U >> 4, nv2->V >> 4 };
GSVector4i next_rect = { nv1->U >> 4, nv1->V >> 4, nv2->U >> 4, nv2->V >> 4 };
if (!cur_rect.rintersect(next_rect).rempty())
continue;
//DevCon.Warning("V %x %x U %x %x", vv->V, m_vertex.buff[i + 2].V, vu->U, m_vertex.buff[i + 2].U);
}

GSVertex* vu;
GSVertex* vv;
if (v1->U > v2->U)
Expand Down

0 comments on commit 2a96497

Please sign in to comment.