Загрузка видео...
Не удалось загрузить видео
an idea i recently played with: gracefully suspend a webgpu scene when the browser becomes inactive - animations ease to a halt - lights are dimmed - the render loop pauses on the final frame the scene then comes back to life on focus :) →
11,244 просмотров • 2 месяцев назад •via X (Twitter)
Комментарии: 21

Uuu, awesome idea 💡

a free new example for a typegpu demo

So clean and subtle! 🔥 They could be randomly assembling / animating themselves in the background, then pop back when in focus. Like Toy Story toys. :)

good idea 👀 maybe for another scene will save that one for later

@pmndrs love the ease slowdown

😍

glad you enjoy it 👀

this reminded me of when in old windows laptop/computer bubbles used to appear and drift across the screen until the mouse was moved to make the screen active again.

Love this idea. It's easy to do when scrolling a video out of frame, but this is so much more elegant.

ty! yeah i used that technique partially when scrolling canvas out of the dom

idk how you did it but you're genuinely one of the best on web 3d that ive ever seen

there are way more talented people than me that on top of that do it professionally, this is just a hobby at my level

i like it!!

gorgeous

ty!

that’s a clever way to manage resources, pausing the render loop sounds smart

ai could never🤯

Pausing on the final frame is a nice touch. It saves work without making the scene feel abruptly dead.
Nice! I played with celebration/particle effects where instead of animating offscreen, time dilates and particles gently freeze frame after a few seconds. Like Mac OS 26's login / wake. Very effective.

suspending the scene on blur is the polish most webgpu demos skip. a fan spinning up because a background tab is animating is the fastest way to lose a user

Suspending render work on blur is a clean state transition. Restoring from a known frame and lifecycle state matters as much as pausing the loop; otherwise focus becomes a hidden reset.
