v0.9.1: adjusted font render count to slightly improve performance

This commit is contained in:
Evan Debenham 2020-12-02 18:48:01 -05:00
parent ea5df5f3ab
commit bfda32620a
2 changed files with 10 additions and 2 deletions

View File

@ -378,7 +378,11 @@ public class AndroidPlatformSupport extends PlatformSupport {
parameters.size = size;
parameters.flip = true;
parameters.borderWidth = parameters.size / 10f;
parameters.renderCount = 1;
if (size >= 20){
parameters.renderCount = 2;
} else {
parameters.renderCount = 3;
}
parameters.hinting = FreeTypeFontGenerator.Hinting.None;
parameters.spaceX = -(int) parameters.borderWidth;
parameters.incremental = true;

View File

@ -192,7 +192,11 @@ public class DesktopPlatformSupport extends PlatformSupport {
parameters.size = size;
parameters.flip = true;
parameters.borderWidth = parameters.size / 10f;
parameters.renderCount = 3;
if (size >= 20){
parameters.renderCount = 2;
} else {
parameters.renderCount = 3;
}
parameters.hinting = FreeTypeFontGenerator.Hinting.None;
parameters.spaceX = -(int) parameters.borderWidth;
parameters.incremental = true;