From 2fac864173e52f3782bb1562f24d0f4ddd424387 Mon Sep 17 00:00:00 2001 From: tekt Date: Thu, 25 Jan 2024 14:15:27 -0800 Subject: [PATCH 1/2] Fix background color for code blocks in doc site See #1160 --- docs/_sass/custom/custom.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index 9fd46a1d0..d9a4f7a14 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -169,7 +169,7 @@ $status-deprecated-fg-color: rgb(64%, 81%, 81%); border-color: #666666; } -div.highlighter-rouge div.highlight.highlight, +/*div.highlighter-rouge div.highlight.highlight, div.highlighter-rouge pre.highlight.highlight { background: #f5f6fa; -} \ No newline at end of file +}*/ From f5ea3c2cfdd9a171a3befa344a145fa534d633e6 Mon Sep 17 00:00:00 2001 From: tekt Date: Sat, 27 Jan 2024 16:32:23 -0800 Subject: [PATCH 2/2] add repeater info to optimization page --- docs/_guide/optimization.md | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/docs/_guide/optimization.md b/docs/_guide/optimization.md index 2ea634f82..87088da2c 100644 --- a/docs/_guide/optimization.md +++ b/docs/_guide/optimization.md @@ -130,3 +130,62 @@ From most effective to least: - Simplify material - Simplify light - Simplify camera + +## Operators That Repeat Work (or might seem like they do) + +### Cheap + +- Common + - `mirrorAxes` + - `mirrorOctant` + - `mirrorQuadrant` + - `modulo1D` + - `modulo2D` + - `modulo3D` + - `moduloPolar` + - `reflect` +- Unusual + - `geometricSeriesSquareTile` + - `logPolarRepeat` + - `moduloDistance` + - `moduloSpherical` + - `moduloLine` + - `quadTreeRepeat` + - `rectangleRepeat` + +### Expensive + +- Common + - `gridClone` → `modulo2D` + - `instance` + - `linearClone` → `modulo1D` + - `radialClone` → `moduloPolar` +- Unusual + - `circularRepeat` but only 4x regardless of spacing/radius + - `flip` with merge enabled + - `instanceField` + - `iteratedTransform` with accumulation enabled + +[`mirrorAxes`]: /raytk/reference/operators/filter/mirrorAxes +[`mirrorOctant`]: /raytk/reference/operators/filter/mirrorOctant +[`mirrorQuadrant`]: /raytk/reference/operators/filter/mirrorQuadrant +[`modulo1D`]: /raytk/reference/operators/filter/modulo1D +[`modulo2D`]: /raytk/reference/operators/filter/modulo2D +[`modulo3D`]: /raytk/reference/operators/filter/modulo3D +[`moduloPolar`]: /raytk/reference/operators/filter/moduloPolar +[`reflect`]: /raytk/reference/operators/filter/reflect +[`geometricSeriesSquareTile`]: /raytk/reference/operators/filter/geometricSeriesSquareTile +[`logPolarRepeat`]: /raytk/reference/operators/filter/logPolarRepeat +[`moduloDistance`]: /raytk/reference/operators/filter/moduloDistance +[`moduloSpherical`]: /raytk/reference/operators/filter/moduloSpherical +[`moduloLine`]: /raytk/reference/operators/filter/moduloLine +[`quadTreeRepeat`]: /raytk/reference/operators/filter/quadTreeRepeat +[`rectangleRepeat`]: /raytk/reference/operators/filter/rectangleRepeat +[`gridClone`]: /raytk/reference/operators/filter/gridClone +[`instance`]: /raytk/reference/operators/filter/instance +[`linearClone`]: /raytk/reference/operators/filter/linearClone +[`radialClone`]: /raytk/reference/operators/filter/radialClone +[`circularRepeat`]: /raytk/reference/operators/filter/circularRepeat +[`flip`]: /raytk/reference/operators/filter/flip +[`instanceField`]: /raytk/reference/operators/filter/instanceField +[`iteratedTransform`]: /raytk/reference/operators/filter/iteratedTransform