manage-scene-lifecycle

Installation
SKILL.md

Manage Scene Lifecycle

Architect and coordinate scene lifecycles, additive level streaming, transition animations, and explicit resource disposal across production game engines.

Core Rules

  • Asynchronous Non-Blocking Streaming: Never freeze the main render thread during scene transitions or asset loading. Load scenes in background threads or via asynchronous promises while displaying smooth transition feedback.
  • Explicit Lifecycle Hooks: Enforce clean lifecycle callbacks for every scene and level chunk: OnPreload(), OnInitialize(), OnActivate(), OnDeactivate(), and OnDisposed().
  • Zero VRAM/RAM Leaks: Disconnect all signal observers, event listeners, and timers before unloading a scene. Force explicit disposal of orphan textures, meshes, and audio streams to prevent memory creep.
  • Contract Adherence: Emit contracts/schemas/implementation-result.json when implementing scene management systems.

Suggested Process

1. Scene Coordinator Architecture

Create a root scene manager service decoupled from individual level nodes. Implement scene stacks for menus, HUD overlays, pause screens, and active gameplay levels.

2. Additive Level Streaming

Partition large worlds into spatial streaming volumes or grid chunks. Additively load adjacent chunks based on player camera bounding boxes and asynchronously unload distant sectors.

Installs
4
GitHub Stars
5
First Seen
Oct 26, 2026