gsdx-ogl: performance boost on virtuafighter

This commit is contained in:
Gregory Hainaut 2015-08-04 21:26:03 +02:00
parent d80aa0b0bd
commit c6ff7531fb
1 changed files with 2 additions and 1 deletions

View File

@ -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