mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-11 05:26:46 +02:00
gsdx-ogl: performance boost on virtuafighter
This commit is contained in:
1 parent
d80aa0b0bd
commit
c6ff7531fb
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user