At least add a fastAA property (#6058)

Since my other pr will never get merged, i will at least add this so i can use it myself
This commit is contained in:
buthed010203 2021-09-27 11:55:34 -04:00 committed by GitHub
parent a21942e401
commit 6fb7f4fe26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ def doAntialias = !project.hasProperty("disableAntialias")
def colorMap = new IntMap<List<Color>>(), colorIndexMap = new IntIntMap()
//on my machine, I have a native Nim AA implementation that is ~10x faster
//it's not compiled for other platforms so they don't get it
def useFastAA = System.getProperty("user.name") == "anuke"
def useFastAA = project.hasProperty("fastAA") || System.getProperty("user.name") == "anuke"
def transformColors = { List<List<String>> list ->
list.each{ colors ->
@ -281,4 +281,4 @@ task updateScripts(dependsOn: classes, type: JavaExec){
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = "../"
}
}