Merge pull request #12695 from hrydgard/new-aa-line-heuristic

New heuristic for getting rid of unnecessary "antialias-lines".
This commit is contained in:
Unknown W. Brackets 2020-03-09 20:38:55 -04:00 committed by GitHub
commit af604b1437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1541,11 +1541,9 @@ void GPUCommon::Execute_Prim(u32 op, u32 diff) {
// Discard AA lines as we can't do anything that makes sense with these anyway. The SW plugin might, though.
if (gstate.isAntiAliasEnabled()) {
// Discard AA lines in DOA
if (prim == GE_PRIM_LINE_STRIP)
return;
// Discard AA lines in Summon Night 5
if ((prim == GE_PRIM_LINES) && gstate.isSkinningEnabled())
// Heuristic derived from discussions in #6483 and #12588.
// Discard AA lines in Persona 3 Portable, DOA Paradise and Summon Night 5, while still keeping AA lines in Echochrome.
if ((prim == GE_PRIM_LINE_STRIP || prim == GE_PRIM_LINES) && gstate.getTextureFunction() == GE_TEXFUNC_REPLACE)
return;
}