Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance Optimizer

When you design a stone by hand, it is easy enough to test one angle at a time: you nudge the pavilion mains by half a degree, look at the render, and nudge them back.

The trouble starts when you have four pavilion tiers and three crown tiers that all depend on each other's meetpoints. Changing P1 changes where P2 lands, which shifts the girdle, which changes how C1, C2, and the table catch light. Exploring all of those combinations by hand is practically impossible.

That is what the Optimizer is for. You tell ProFacet which angles or depths are allowed to move and how far they can go, pick the optical qualities you care about most, and let your GPU test thousands of candidate stones in seconds.

Note: The Optimizer is free for all colored-stone materials with a refractive index below 2.0 (such as quartz, beryl, topaz, tourmaline, spinel, sapphire, and garnet). Optimization for high-RI materials (RI ≥ 2.0, including Diamond, Moissanite, and CZ) requires commercial licensing—contact sales (info@offthedop.shop), or browse thousands of pre-optimized high-RI cutting diagrams at OffTheDop.shop.


1. Tell the Optimizer What Can Move (+/-)

The Optimizer never changes a number in your design unless you give it permission. To make a number adjustable, add +/- and a search range right after it:

  • Degrees or units (+/- 1.5): Writing 41.0 +/- 1.5 lets the Optimizer search anywhere between 39.5° and 42.5°.
  • Percentages (+/- 5%): Writing 0.18 +/- 5% lets the value move up or down by 5% of its starting value.
  • From the Interactive Slicer: You can also check the Optimizable box next to the Angle or Depth slider while slicing, and ProFacet will add +/- 5% for you.

Here is a simple stone with three adjustable tiers (P1, P2, and C1) while P3 and T stay fixed:

name = "Optimizer Demo"
gear = 96

P1 0 @ 41.0 +/- 1.5 : 0.18 x8
P2 6 @ 39.5 +/- 1.5 : mp(P1)
P3 12 @ 38.2 : 0.16

G1 0 @ 90 : size x16
C1 0 @ 32.0 +/- 2.0 : mp(G1,P1) + girdle
T 0 @ 0 : 0.9
-- lua script
name("Optimizer Demo")
gear(96)
local girdle = Point(0, 0, 0.04)

local p1_angle = val(41.0, 1.5)
TierAD("P1", 0, p1_angle, 0.18, "x8")

local p2_angle = val(39.5, 1.5)
TierAP("P2", 6, p2_angle, mp("P1"))

TierAD("P3", 12, 38.2, 0.16)

TierAD("G1", 0, 90, 1.0, "x16")

local c1_angle = val(32.0, 2.0)
TierAP("C1", 0, c1_angle, mp("G1", "P1"):add(girdle))

TierAD("T", 0, 0, 0.9)

If you open the Optimizer on a file that has no +/- ranges (or val() calls in Lua), it will simply let you know that no optimizable parameters were found.

Tip: Keeping proportions in check. Sometimes the Optimizer discovers that it can boost brightness by shrinking the table to a tiny pinhole or making the pavilion extra deep. If you want to forbid that, you can add a one-line guardrail like assert(stone().tablePercentage >= 50) at the bottom of your file. See Optimization Constraints (assert) for ready-to-copy examples.


2. Pick Your Priorities (Weights & Presets)

Every cutter—and every piece of rough—has different goals. For a pale piece of aquamarine, you might want to close a window and maximize contrast; for a dark garnet, you probably want every last drop of brightness.

In the Optimizer panel:

  1. Start with one of the built-in presets: Balanced Default, Brilliance Boost, or Contrast Focus.
  2. Fine-tune any of the 0–10 weight sliders (Average Brightness, Contrast Density, Contrast Intensity, Scintillation, Compactness, Shannon Entropy, Window, or ASET Targets).
  3. If you find a mix you love, click Save Preset to keep it for future stones.

Curious how the sliders are combined behind the scenes? Read Scoring Model & ASET Targets.


3. Run, Compare & Apply

  1. Click Start Optimization. As the engine runs, you'll see the iteration counter climb along with the best score found so far and how much each metric improved over your starting design.
  2. Whenever a better stone is found, the Comparison Panel shows the Original stone and the Optimized stone side by side so you can judge the visual difference for yourself.
  3. Click Stop & Keep Best whenever you are happy with the progress.
  4. Once stopped, you have three choices:
    • Replace Editor with Optimized writes the winning angles straight into your current recipe.
    • Save Optimized as New Version saves the optimized stone as a separate file so your original design stays untouched.
    • Resume Optimization picks up the search right where you paused, using the best stone found so far as the starting point.