mirror of
https://github.com/samvallad33/vestige.git
synced 2026-07-02 22:01:01 +02:00
The loop fired requestAnimationFrame immediately and never awaited render(); with 150k particles + compute + bloom a frame can exceed 16ms, so rAF callbacks queued faster than the GPU could drain them and the camera/parallax visibly lagged behind the cursor. Now AWAIT sb.render(dt) before scheduling the next frame → the loop is capped to real GPU throughput, every frame reflects the latest pointer position, no backlog. Also snappier active-steer damping (lam 3.5→9, ~110ms converge) so input feels immediate; idle glide-home unchanged. renderFailures resets on success. Plus docs/MEMORY_CINEMA.md — complete feature reference for the cinema engine. Gate: svelte-check 0/0, 937 tests, verified live (parallax tracks cursor, no lag). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| build | ||
| e2e | ||
| src | ||
| static | ||
| .env.example | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||