by adom
The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.
← Commit history
loader.html+18−3@@ -57,7 +57,11 @@ function homeFor(m){ return m<0 ? R*(1+m/100) : R/(1-m/100); } var MODE=String((window.__ADOM_LOADER_PARAMS&&window.__ADOM_LOADER_PARAMS.mode)||Q.get('mode')||'').toLowerCase(); if(MODE==='sexy')MODE='performance'; var LIGHT=(MODE==='lightweight'||MODE==='light');-var FPSCAP=Math.max(0,P('fps',LIGHT?30:0)); if(FPSCAP>0&&FPSCAP<20)FPSCAP=20;+/* SAFEGUARD (2026-08-04, upstreamed from Hydrogen Desktop): default to a BOUNDED 60fps even+ in performance mode instead of uncapped. An uncapped WebGL surface on a slower/integrated+ GPU pegs the GPU and starves the embedding app's UI thread (frozen nav) and delivers frame+ BURSTS that read as "crazy speed". A hero that genuinely wants uncapped opts out: ?fps=0. */+var FPSCAP=Math.max(0,P('fps',LIGHT?30:60)); if(FPSCAP>0&&FPSCAP<20)FPSCAP=20; var DPRCAP=Math.max(1,Math.min(3,P('dpr',LIGHT?1:2))); var SEGQ=Math.round(Math.max(24,Math.min(128,P('seg',LIGHT?48:80)))); var AAON=P('aa',LIGHT?0:1)>=1;@@ -347,12 +351,18 @@ var BIRTH_S=2.6, birth=EMERGE?0:1, birthT=0; var orbA=0; // auto-orbit yaw, radians function frame(now){+ /* STOP WHEN HIDDEN (the header comment promised this; it was never implemented). An+ off-screen orbital must not keep burning GPU. Reschedule without drawing or advancing+ time; keep `last` current so returning to visible never computes a jumped dt. */+ if(document.hidden){ last=now; requestAnimationFrame(frame); return; } if(FPSCAP>0){ if(now-lastDraw < 1000/FPSCAP - 1){ requestAnimationFrame(frame); return; } lastDraw=now; } applySize();- var dt=Math.min(0.05,(now-last)/1000); last=now;+ /* Clamp dt to [0, 0.05]: never negative (a backwards clock across resume/DST would run+ the sim in reverse) and never a big jump (a stalled frame can't lurch). */+ var dt=Math.max(0,Math.min(0.05,(now-last)/1000)); last=now; var adt=dt*SPEED; tEvo+=adt; if(birth<1){birthT+=adt;birth=smooth(Math.min(1,birthT/BIRTH_S)); glc.style.opacity=birth>=1?'':String(0.04+0.96*birth);}@@ -462,7 +472,12 @@ function frame(now){ } requestAnimationFrame(frame); }-requestAnimationFrame(frame);+/* EXACTLY ONE loop per document: if this script ever evaluates twice, a second concurrent+ frame() loop would advance the sim clock in parallel (2x/3x "crazy speed"). */+if(!window.__ADOM_ORBITAL_RUNNING){+ window.__ADOM_ORBITAL_RUNNING=true;+ requestAnimationFrame(frame);+} /* Click-to-zoom, OFF unless armed: real load screens must never eat input. Armed via ?interact=1 (or window.__ADOM_LOADER_INTERACT, which the wiki
package.json+2−2@@ -2,7 +2,7 @@ "slug": "orbital-lab", "title": "Orbital Lab", "type": "app",- "version": "1.0.23",+ "version": "1.0.24", "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.", "tags": [ "brand",@@ -45,4 +45,4 @@ "hero": { "path": "docs/hero.png" }-}+}
page.json+1−1@@ -2,7 +2,7 @@ "slug": "orbital-lab", "title": "Orbital Lab", "type": "app",- "version": "1.0.23",+ "version": "1.0.24", "description": "The Adom logomark is a hydrogen 2p orbital: psi = (2p_x + 2p_y)/sqrt(2). A live Babylon.js lab that proves it (all 16 real spherical harmonics, the alignment cheat, and the directed loop), plus loader.html: the same animation as one dependency-free WebGL file for webview load screens.", "tags": [ "brand",