Repository navigation
v1.37.1: shaders that compile without freezing the page
·
96 commits
to main
since this release
Two fixes, both in published components. Nothing in the API changed, so upgrading needs no code changes.
Fixed
- ShaderField and ShaderScene no longer freeze the page while their shader compiles. Each read the link status straight after linking, which stops the main thread until the graphics driver has finished: about a tenth of a second for a small scene and two seconds or more for a large one such as
horizon, longest on Windows, during which the page answered no press, scroll or key. Both now wait for the compile away from the main thread and start drawing when it is done. - SiteHeader's mega menu stays open while the pointer moves down to it. The strip between a section pill and its menu belonged to neither, so a pointer that crossed it slowly lost the menu, and the press landed on the page behind.
Changed
- A scene reports
pendinguntil its shader has compiled. A heavy scene appears a moment later than it did, and a fallback you paint forpendingshows for that moment, in exchange for a page that stays responsive meanwhile.onStatusChangeandonErrorreport as before, a failed scene's log included. - ShaderField and ShaderScene measure their box when it changes size, where they asked every frame.
npm install rift-ds@1.37.1