From ffd5a361dcbde11b48e122282483f2372364af2b Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Thu, 30 Apr 2026 12:25:41 -0700 Subject: [PATCH] =?UTF-8?q?Speed=20up=20idle=20fade:=2010=20min=20?= =?UTF-8?q?=E2=86=92=205=20min=20lifetime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Streamer (goose.art): "prioritize fading out users, as the area is getting very crowded". The 10-minute lifetime from the previous tuning was too slow to clean up during a chatty stream — pets were piling up faster than they aged out. Halved both thresholds: linear opacity fade over 5 minutes, dissolve turbulence kicks in at the 4-minute mark for the last-minute snap. Easy to re-tune later if 5 min is too eager. Co-Authored-By: Claude Opus 4.7 (1M context) --- pets.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pets.html b/pets.html index ea8bb48..42eef2f 100644 --- a/pets.html +++ b/pets.html @@ -2041,12 +2041,11 @@ if (DEMO) { /* ---------- Main loop ---------- */ // Idle pets fade out and dispose so the stage stays clean. -// Linear 10% per minute → fully gone at 10:00 (per chat: "every minute they -// should get like 10% faded and then be fully removed after 10 minutes"). -// The dissolve filter only kicks in for the last couple of minutes so the -// disappearance reads as a snap, not a slow ghosting. -const IDLE_DEATH_MS = 10 * 60 * 1000; // disposed at 10 min -const IDLE_DISSOLVE_AT_MS = 8 * 60 * 1000; // turbulence joins in at 8 min +// Streamer follow-up: "prioritize fading out users, as the area is getting +// very crowded" — halved the lifetime from 10 min to 5 min so the +// disappearance is something you can actually watch happen on stream. +const IDLE_DEATH_MS = 5 * 60 * 1000; // disposed at 5 min +const IDLE_DISSOLVE_AT_MS = 4 * 60 * 1000; // turbulence joins in at 4 min let last = performance.now(); function frame(now) { -- 2.51.2