more detailed debug

This commit is contained in:
zsviczian 2023-04-04 18:55:40 +02:00
parent 3f11ca0a44
commit a772362599

View File

@ -417,10 +417,14 @@ export const _renderScene = ({
console.log("start: renderElements"); console.log("start: renderElements");
} }
console.log( console.log(
visibleElements.length,
appState.zoom.value,
Math.round(
visibleElements.reduce((acc, el) => { visibleElements.reduce((acc, el) => {
const { width, height } = cappedElementCanvasSize(el, appState.zoom); const { width, height } = cappedElementCanvasSize(el, appState.zoom);
return acc + width * height; return acc + width * height;
}, 0), }, 0),
),
); );
visibleElements.forEach((element) => { visibleElements.forEach((element) => {
try { try {