v0.9.1: adjusted font render count to slightly improve performance
This commit is contained in:
parent
ea5df5f3ab
commit
bfda32620a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user