Skip to content
Development
Skill

/metal-asset-streaming-workflow

Guide Metal game asset residency and streaming for textures, meshes, mipmaps, heaps, residency sets, sparse resources, and fast resource loading. Use when Codex investigates GPU memory pressure, streaming hitches, resource lifetime, texture or mesh upload, sparse texture

From plugin
socket
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill metal-asset-streaming-workflow --agent claude-code

SKILL.md

metal-asset-streaming-workflow.SKILL.md
name: metal-asset-streaming-workflow
description: Guide Metal game asset residency and streaming for textures, meshes, mipmaps, heaps, residency sets, sparse resources, and fast resource loading. Use when Codex investigates GPU memory pressure, streaming hitches, resource lifetime, texture or mesh upload, sparse texture mapping, or asset budgets in a Metal renderer; do not use for generic asset-catalog or SceneKit resource work.

Metal Asset Streaming Workflow

Scope

Own the GPU-facing asset path: package or source asset, CPU staging, upload, residency, eviction, and use in a frame. Do not hide all asset ownership in a generic cache; name the asset manager and the renderer boundary that consumes it.

Read [streaming-model.md](references/streaming-model.md) before introducing a heap, residency set, sparse resource, or fast-resource-loading path.

Workflow

1. Measure the actual symptom: first-use hitch, sustained stutter, missing detail, out-of-memory termination, or GPU resource-pressure growth. 2. Inventory asset classes, size ranges, mip/LOD behavior, residency lifetime, upload path, and current CPU/GPU ownership. 3. Choose the simplest durable path:

  • ordinary texture or buffer loading for bounded content;
  • explicit heaps or residency sets when allocation and lifetime grouping are the problem;
  • fast resource loading when packaged asset loading is proven to dominate;
  • sparse resources only when content size or streaming granularity justifies their mapping complexity.

4. Define budget and eviction policy before loading more data: per-class budget, minimum viable mip/LOD, prefetch trigger, eviction trigger, fallback content, and telemetry. 5. Synchronize upload, mapping, and use. A resource must not become visible to a render pass until its data and mapping work have completed. 6. Validate memory and frame pacing on target hardware with representative content and movement, not a synthetic empty scene.

Guardrails

  • Do not equate unified memory with unlimited GPU memory or omit budgeting on Apple silicon.
  • Do not call a resource zero-copy without demonstrating compatible storage, format, synchronization, and absence of conversion/readback.
  • Keep sparse residency and asset LOD decisions data-driven; do not infer success from allocated bytes alone.

Handoffs

  • `metal-game-rendering-workflow` for command encoding, renderer lifetime, and resource consumers.
  • `xcode-game-profiling-workflow` for memory pressure, VM behavior, GPU timeline, or hitch evidence.
  • `game-porting-toolkit-workflow` for a source port that needs GPTK’s asset and resource translation guidance.

Output

Return the measured symptom, selected loading/residency path, budget and fallback policy, synchronization boundary, validation evidence, and unproven hardware assumptions.

Read more
@gaelic-ghost
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about metal-asset-streaming-workflow.

Which coding agents can use metal-asset-streaming-workflow?
metal-asset-streaming-workflow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.