perf: pause globe rendering when offscreen
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- three.js
- Domain
- data-visualization, frontend
Research direction
Inspect src/lib/Globe.svelte around the referenced lines and trace how the Three.js render loop and controls().autoRotate are managed. Reproduce the availability page behavior in Chrome, then verify that rendering pauses when the globe is offscreen or inactive and no longer runs continuously.
Written by the indexing model from the issue text.
Description
Opening https://interledger.github.io/reports/availability makes Chrome consume memory until my computer becomes unresponsive, sometimes requiring a forced restart.
The likely trigger is the Three.js globe's permanent WebGL render loop. The page only toggles controls().autoRotate, which stops rotation but not rendering—even when the globe is offscreen:
The extreme memory growth may be Chrome/GPU-driver-specific, but the continuous rendering is unnecessary and triggers it.
Please pause the renderer with globe.pauseAnimation() when it is offscreen or inactive. Disabling automatic rotation, loading the globe only on user request, or using a static SVG map would be safer.
- Dominant language
- Svelte
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jbkunst/highcharter#849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OrgExplorer#245 · 1 assignee ·
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gordonwatts/test-wsl2-llm#151 ·