debug
This commit is contained in:
parent
808e4711f9
commit
3f11ca0a44
@ -1361,10 +1361,10 @@ class App extends React.Component<AppProps, AppState> {
|
||||
document.querySelector(".excalidraw")!,
|
||||
).getPropertyValue("--color-selection");
|
||||
|
||||
const now = Date.now();
|
||||
if (!this.state.shouldCacheIgnoreZoom) {
|
||||
console.log(`renderScene`, now);
|
||||
}
|
||||
//const now = Date.now();
|
||||
//if (!this.state.shouldCacheIgnoreZoom) {
|
||||
// console.log(`renderScene`, now);
|
||||
//}
|
||||
renderScene(
|
||||
{
|
||||
elements: renderingElements,
|
||||
@ -1402,9 +1402,9 @@ class App extends React.Component<AppProps, AppState> {
|
||||
this.setState({ scrolledOutside });
|
||||
}
|
||||
this.scheduleImageRefresh();
|
||||
if (!this.state.shouldCacheIgnoreZoom) {
|
||||
setTimeout(() => console.log(`after renderScene`, now));
|
||||
}
|
||||
//if (!this.state.shouldCacheIgnoreZoom) {
|
||||
// setTimeout(() => console.log(`after renderScene`, now));
|
||||
//}
|
||||
},
|
||||
},
|
||||
true ||
|
||||
|
@ -140,12 +140,12 @@ export const throttleRAF = <T extends any[]>(
|
||||
const scheduleFunc = (args: T) => {
|
||||
timerId = window.requestAnimationFrame(() => {
|
||||
timerId = null;
|
||||
console.log("start render in animation frame");
|
||||
//console.log("start render in animation frame");
|
||||
fn(...args);
|
||||
console.log("render done in animation frame");
|
||||
//console.log("render done in animation frame");
|
||||
lastArgs = null;
|
||||
if (lastArgsTrailing) {
|
||||
console.log("last args trailing", lastArgsTrailing);
|
||||
//console.log("last args trailing", lastArgsTrailing);
|
||||
lastArgs = lastArgsTrailing;
|
||||
lastArgsTrailing = null;
|
||||
scheduleFunc(lastArgs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user