diff --git a/demo/client/html/benchmark.html.hbs b/demo/client/html/benchmark.html.hbs
index 54a0a385..b6d40900 100644
--- a/demo/client/html/benchmark.html.hbs
+++ b/demo/client/html/benchmark.html.hbs
@@ -13,15 +13,17 @@
class="fixed-bottom mb-3 pt-3 d-flex justify-content-between align-items-end pf-pointer-events-none border border-right-0 border-bottom-0 border-left-0">
-
-
-
+ {{>partials/switch.html id="pf-subpixel-aa" title="Subpixel AA"}}
+
diff --git a/demo/client/src/benchmark.ts b/demo/client/src/benchmark.ts
index 812bf622..5b1a2668 100644
--- a/demo/client/src/benchmark.ts
+++ b/demo/client/src/benchmark.ts
@@ -241,8 +241,13 @@ class BenchmarkTestView extends MonochromeDemoView {
renderingPromiseCallback: ((time: number) => void) | null;
- readonly bgColor: glmatrix.vec4 = glmatrix.vec4.clone([1.0, 1.0, 1.0, 0.0]);
- readonly fgColor: glmatrix.vec4 = glmatrix.vec4.clone([0.0, 0.0, 0.0, 1.0]);
+ get bgColor(): glmatrix.vec4 {
+ return glmatrix.vec4.clone([1.0, 1.0, 1.0, 0.0]);
+ }
+
+ get fgColor(): glmatrix.vec4 {
+ return glmatrix.vec4.clone([0.0, 0.0, 0.0, 1.0]);
+ }
protected usedSizeFactor: glmatrix.vec2 = glmatrix.vec2.clone([1.0, 1.0]);