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:
+17
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user