Fix WebGL freeze and crash loop with safer boot and lighter shaders.

Guard canvas lifecycle to stop the fitCanvas TypeError loop, load a slim base shader first while the full genome program compiles in the background, and trim GPU-heavy paths so weak devices stay responsive.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonxlnx
2026-06-12 15:51:58 +02:00
parent e309bc71d6
commit 3c54400025
5 changed files with 273 additions and 179 deletions
+17
View File
@@ -236,6 +236,23 @@ body.ready .canvas-boot { opacity: 0; }
body.ready #view { opacity: 1; }
.stage-error {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
text-align: center;
color: #9b9ba4;
font-size: 13px;
line-height: 1.6;
background: rgba(9, 9, 11, 0.92);
border-radius: var(--radius-l);
z-index: 2;
}
.stage-error[hidden] { display: none !important; }
.stage-meta {
display: flex;
align-items: center;