Don't break animation loop when errors occur

This commit is contained in:
Skyler Lehmkuhl 2025-01-04 00:32:01 -05:00
parent b9702508a3
commit 27fb6105cc
1 changed files with 25 additions and 20 deletions

View File

@ -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();