mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: performance boost on virtuafighter
This commit is contained in:
parent
d80aa0b0bd
commit
c6ff7531fb
|
@ -455,7 +455,8 @@ GSRendererOGL::PRIM_OVERLAP GSRendererOGL::PrimitiveOverlap()
|
|||
if (m_vertex.next < 4)
|
||||
return PRIM_OVERLAP_NO;
|
||||
|
||||
if (m_vt.m_primclass != GS_SPRITE_CLASS)
|
||||
// Don't check too many primitive, code will be too slow (game: virtuafighter)
|
||||
if (m_vt.m_primclass != GS_SPRITE_CLASS || m_vertex.next > 256)
|
||||
return PRIM_OVERLAP_UNKNOW; // maybe, maybe not
|
||||
|
||||
// Check intersection of sprite primitive only
|
||||
|
|
Loading…
Reference in New Issue