debug
This commit is contained in:
parent
b314b939b2
commit
23fcddb2a3
@ -826,10 +826,12 @@ export const renderScene = <T extends boolean = false>(
|
|||||||
throttle?: T,
|
throttle?: T,
|
||||||
): T extends true ? void : ReturnType<typeof _renderScene> => {
|
): T extends true ? void : ReturnType<typeof _renderScene> => {
|
||||||
if (throttle) {
|
if (throttle) {
|
||||||
|
if(!config.appState.shouldCacheIgnoreZoom) console.log(`renderScene 1 throttled`, throttle)
|
||||||
renderSceneThrottled(config);
|
renderSceneThrottled(config);
|
||||||
return undefined as T extends true ? void : ReturnType<typeof _renderScene>;
|
return undefined as T extends true ? void : ReturnType<typeof _renderScene>;
|
||||||
}
|
}
|
||||||
const ret = _renderScene(config);
|
const ret = _renderScene(config);
|
||||||
|
if(!config.appState.shouldCacheIgnoreZoom) console.log(`renderScene 1 not throttled`, config.callback)
|
||||||
config.callback?.(ret);
|
config.callback?.(ret);
|
||||||
return ret as T extends true ? void : ReturnType<typeof _renderScene>;
|
return ret as T extends true ? void : ReturnType<typeof _renderScene>;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user