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