Don't break animation loop when errors occur
This commit is contained in:
parent
b9702508a3
commit
27fb6105cc
|
|
@ -7204,6 +7204,7 @@ function startToneOnUserInteraction() {
|
||||||
startToneOnUserInteraction();
|
startToneOnUserInteraction();
|
||||||
|
|
||||||
function renderAll() {
|
function renderAll() {
|
||||||
|
try {
|
||||||
if (uiDirty) {
|
if (uiDirty) {
|
||||||
renderUI();
|
renderUI();
|
||||||
uiDirty = false;
|
uiDirty = false;
|
||||||
|
|
@ -7224,7 +7225,11 @@ function renderAll() {
|
||||||
renderInfopanel();
|
renderInfopanel();
|
||||||
infopanelDirty = false;
|
infopanelDirty = false;
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Error during rendering:", error);
|
||||||
|
} finally {
|
||||||
requestAnimationFrame(renderAll);
|
requestAnimationFrame(renderAll);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
renderAll();
|
renderAll();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue