mobilegl-dev/mobilegl/renderdoc-debug-on-trace-replay
Claude Code and agent skill by mobilegl-dev/mobilegl
- community
Checking that the SKILL.md file is still in the repository.
Capture and validate an exact frame from a MobileGL apitrace retrace on a connected Android device with RenderDoc/rdc-cli. Use for DirectVulkan or DirectGLES trace replay, mapping a target API call to an eglSwapBuffers frame, producing an .rdc plus a complete command manifest, checking capture stability, or troubleshooting Android TargetControl timing and replay failures.
Install
npx vskill@latest install mobilegl-dev/mobilegl/renderdoc-debug-on-trace-replaySKILL.md
Capture a RenderDoc Trace Frame
Use the repository tool to queue TargetControl before launching the replay activity, keep the connection alive until capture completion, pull the RDC, and write a reproducible JSON manifest.
Prepare
- Work from the MobileGL repository root.
- Confirm
python,adb,apitrace, andrdcare onPATH. - Confirm the trace replay APK is installed and debuggable:
- Pass the unpacked
trace.trace, its golden PNG, the fixture target call, backend, and output path totools/trace_replay/skills/renderdoc-debug-on-trace-replay/scripts/capture_android_retrace.py.
Capture
Let the tool infer the zero-based target swap from eglSwapBuffers calls:
Change only the backend and output for GLES:
Use --target-swap N when the mapping is already known. Use --capture-frame N only to override the backend rule deliberately.
The default mapping is:
- DirectGLES: capture the zero-based target swap.
- DirectVulkan: capture
target swap - 1, so the capture closes at the terminal target Present. Queueing the terminal Vulkan swap itself can never finish when the retrace stops immediately after that Present.
The tool applies a 256 MiB RenderDoc softMemoryLimit for Vulkan, installs the GLES layer only for GLES, queues before Activity launch, drains asynchronous TargetControl registration messages, and restores device properties and forwards afterward. Do not replace it with a late rdc script call.
Inspect the Output
Read <output>.rdc.json. Require all of the following:
successistrue.capture.frameequals the requested capture frame.capture.apimatches Vulkan or OpenGLES.byteSizeis non-zero andsha256is present.retraceResultsays the replay completed; treat its SSIM separately from RDC validity.commandsandcommandLinescontain the full reproducible command history.
A DirectVulkan SSIM below a GLES golden threshold can be a backend rendering difference. Do not reject the RDC solely for that reason if RenderDoc can replay it and the target render output is present.
Validate with RenderDoc
Validate GLES locally:
Validate device-specific Vulkan captures on the original Android GPU:
Use the local TCP port mapped to localabstract:renderdoc_39920 as FORWARDED_REMOTE_PORT. Prefer Android remote replay when a desktop GPU lacks the Android capture's memory types.
Diagnose Failures
Read references/android-renderdoc-troubleshooting.md when capture metadata is missing, a capture times out, the GLES layer does not load, Vulkan stalls on initial contents, rdc android setup --serial cannot select a listed device, or desktop replay rejects a Vulkan RDC.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtools/trace_replay/skills/renderdoc-debug-on-trace-replay/SKILL.md
Popularity
- Repository stars
- 175
- Repository forks
- 87
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mobilegl-dev/mobilegl/renderdoc-debug-on-trace-replay)