From 24671d4358281a9a4da1fd8f755dc10fd274fa48 Mon Sep 17 00:00:00 2001 From: Matysh Date: Sat, 3 Oct 2026 00:10:28 +0300 Subject: [PATCH] =?UTF-8?q?perf:=20=D1=81=D0=BD=D0=B8=D0=B7=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D1=81=D1=82=D0=BE=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C?= =?UTF-8?q?=20=D0=BC=D0=B0=D1=81=D0=BA=D0=B8=20LED-=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=20(#780)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #780 User-Visible: no --- src/led-strip-field.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/led-strip-field.ts b/src/led-strip-field.ts index a6415ace..4a2cea7b 100644 --- a/src/led-strip-field.ts +++ b/src/led-strip-field.ts @@ -112,12 +112,12 @@ const pointsKey = (points: readonly number[][]): string => points.map((p) => `${p[0].toFixed(5)},${p[1].toFixed(5)}`).join(';'); /** - * Fans of the field only bound the zero-alpha outer rim. A 16-gon keeps its - * maximum radial error below 2%; every visible acceptance point at r/2 stays - * well inside it, while the heavy 50×50 scene carries half as many clip - * segments through every camera rasterization. + * Fans of the field only bound the zero-alpha outer rim. A 12-gon keeps its + * maximum radial error below 3.5%; every visible acceptance point at r/2 stays + * well inside it, while the heavy 50×50 scene carries fewer clip segments + * through every camera rasterization. */ -const LED_ARC_STEPS = 16; +const LED_ARC_STEPS = 12; const segmentDistance = (p: Pt, s: readonly number[]): number => { const dx = s[2] - s[0], dy = s[3] - s[1];