Skip to content
Back to skills

Ztx14 Curated Shared Loop Offscreen Sleep

ASecurity

Prevent wasteful perpetual animation loops and coordinate offscreen/idle rendering with the existing Isometric engine.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
designreactgitapiperformance

Works with

  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Realjustawall/Perfect-AI --skill ztx14-curated-shared-loop-offscreen-sleep --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ztx14 Curated Shared Loop Offscreen Sleep?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ztx14 Curated Shared Loop Offscreen Sleep
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/realjustawall-ztx14-curated-shared-loop-offscreen-sleep/badge)](https://www.skillsdirectory.com/skills/realjustawall-ztx14-curated-shared-loop-offscreen-sleep)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ztx14-curated-shared-loop-offscreen-sleep
description: Prevent wasteful perpetual animation loops and coordinate offscreen/idle rendering with the existing Isometric engine.
---

# Preserve one frame loop and sleep when motion is idle

> Curated implementation skill. Inspect the installed project and actual component source before changing behavior. Do not assume latest APIs are installed. Preserve unrelated files and existing component ownership.

## Site-specific rule
Isometric's documented engine has a shared animation loop that sleeps offscreen. Inspect the installed version before writing a loop; do not create a competing `requestAnimationFrame` per figure.

## Workflow
1. Identify which loop drives each animated property and where it is started/stopped.
2. Subscribe new behavior to the existing scheduler if the engine exposes a supported interface; otherwise prefer library-managed motion for a separate DOM element.
3. Ensure idle motion reaches a rest state and does not continue scheduling frames indefinitely.
4. Pause or lower work when the document is hidden and when scenes are offscreen, using the engine's established policy.
5. Resume from current time/state without a huge catch-up delta after a tab becomes active.
6. Measure active and idle CPU/frame behavior; only optimize after collecting evidence.

## Avoid
Multiple loops with unsynchronized clocks, adding IntersectionObservers for every child when a shared engine already manages visibility, and retaining unmounted objects in a scheduler list.

## Primary references
- [isometric](https://isometric.buildlab.in/llms.txt)
- [react-effect](https://react.dev/reference/react/useEffect)
- [r3f-perf](https://github.com/pmndrs/react-three-fiber/blob/master/docs/advanced/scaling-performance.mdx)
- [web-animation-performance](https://web.dev/articles/animations-guide)

## Completion evidence
- State what was inspected, what changed, and which checks actually ran. Never report unrun tests or unverified browser behavior as passing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.