Faster AA table generation

This commit is contained in:
elasota
2021-03-27 03:01:43 -04:00
parent ae69696cbd
commit 0df94405f8
3 changed files with 141 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ namespace PortabilityLayer
if (mutex)
mutex->Unlock();
entry.m_aaTable.GenerateForPalette(color, m_colors, 256, true);
entry.m_aaTable.GenerateForPaletteFast(color);
return entry.m_aaTable;
}
@@ -292,7 +292,7 @@ namespace PortabilityLayer
if (mutex)
mutex->Unlock();
entry.m_aaTable.GenerateForSimpleScale(tone, true);
entry.m_aaTable.GenerateForSimpleScale(tone, false);
return entry.m_aaTable;
}