perf: разбить вычитание лестниц по кадрам (#663)

Issue: #663
User-Visible: no
This commit is contained in:
Matysh
2026-09-26 23:48:01 +03:00
parent bcc5481557
commit ea1f19c352
4 changed files with 79 additions and 4 deletions
+12
View File
@@ -96,6 +96,18 @@ const MUTANT_DEFINITIONS = [
replace: ' return source; // mutant: footprints no longer affect clean area\n',
}],
},
{
id: 'stairs-summary-area-clips-all-footprints-in-one-task',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
+ '&& node --test test/stairs.test.mjs',
because: '#663 AC13: the maximum 250 stair footprints must be clipped in bounded slices; '
+ 'one polyclip sweep blocks the summary panel main thread on slower clients.',
patches: [{
file: 'src/stairs.ts',
find: ' batchSize = 24,\n',
replace: ' batchSize = MAX_STAIRS_PER_SPACE, // mutant: one long main-thread clip\n',
}],
},
{
id: 'stairs-view-pan-opens-target-floor',
guard: 'node demo/smoke_stairs.mjs',