From fd030de669c590bc26da010538cec83449ee696a Mon Sep 17 00:00:00 2001 From: zsviczian Date: Mon, 3 Apr 2023 21:45:38 +0200 Subject: [PATCH] debug --- src/components/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 94177e0da..df4d79ae2 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1361,7 +1361,8 @@ class App extends React.Component { document.querySelector(".excalidraw")!, ).getPropertyValue("--color-selection"); - if(!this.state.shouldCacheIgnoreZoom) console.log(`renderScene`); + const now = Date.now(); + if(!this.state.shouldCacheIgnoreZoom) console.log(`renderScene`,now); renderScene( { elements: renderingElements, @@ -1399,7 +1400,7 @@ class App extends React.Component { this.setState({ scrolledOutside }); } this.scheduleImageRefresh(); - if(!this.state.shouldCacheIgnoreZoom) setTimeout(()=>console.log(`after renderScene`)); + if(!this.state.shouldCacheIgnoreZoom) setTimeout(()=>console.log(`after renderScene`,now)); }, }, THROTTLE_NEXT_RENDER && window.EXCALIDRAW_THROTTLE_RENDER === true,