perf: keep room contour cache out of editor previews

Issue: #322
User-Visible: no
This commit is contained in:
Matysh
2026-08-27 13:11:03 +03:00
parent 298030d47e
commit 87ff906545
16 changed files with 41 additions and 28 deletions
+1
View File
@@ -92,6 +92,7 @@ test('room inner faces are structurally cached and shared by both fill layers',
const helperEnd = source.indexOf('\n /**', helperStart);
assert.ok(helperStart >= 0 && helperEnd > helperStart, 'inner-contour cache helper is present');
const helper = source.slice(helperStart, helperEnd);
assert.match(helper, /const cacheable = this\._mode === 'view' && !this\._rszPreview;/);
assert.match(helper, /lruRead\(this\._innerContourCache, key\)/);
assert.match(helper, /lruWrite\(this\._innerContourCache, key, value, 600\)/);