Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

RENDER_LOST

Package @dioramajs/diorama/effects Level error

The GPU device or WebGL context was lost, or rendering was disabled, so every effect switched off and the DOM shows again.

View as Markdown
On this page
RENDER_LOST: the GPU device was lost

Why it happens

  • WebGPU reports a lost device through renderer.onDeviceLost, for example after a driver reset or a crash of the browser’s GPU process.
  • The canvas fires webglcontextlost on the WebGL 2 backend. Browsers drop contexts under memory pressure, after a driver reset, or when a page creates too many WebGL contexts.
  • The kernel disabled the render system after it failed 10 frames in a row and reported SYSTEM_DISABLED.

The report prints once. In the same frame every instance becomes unavailable, its GL objects, textures and anchors are freed, and the page shows its DOM. app.effects.status becomes unavailable, and effects stay off until the page reloads.

How to fix

  1. Look above this error in the console. If SYSTEM_DISABLED came first, fix the first error reported for the render system, under the code SYSTEM.
  2. Count the canvases with a WebGL context on the page, including those of other libraries, and remove the ones you do not need.
  3. Make sure the page reads well as plain DOM, since that is what visitors see after a loss.