Skip to content

Commit 2d8fd83

Browse files
docs: update project logo and README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 777a865 commit 2d8fd83

File tree

4 files changed

+30
-37
lines changed

4 files changed

+30
-37
lines changed

README-CN.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
<p align="center">
2-
<img src="docs/logo.png" alt="renderdoc-mcp" width="400">
3-
</p>
4-
5-
<h1 align="center">renderdoc-mcp</h1>
6-
7-
<p align="center">
8-
面向 AI 的 RenderDoc GPU 帧调试工具
9-
</p>
10-
11-
<p align="center">
2+
<img src="docs/logo.png" alt="renderdoc-mcp" width="400"><br>
3+
<b>面向 AI 的 RenderDoc GPU 帧调试工具</b><br><br>
124
<a href="https://github.com/JiaboLi-GitHub/renderdoc-mcp/actions/workflows/release.yml"><img src="https://github.com/JiaboLi-GitHub/renderdoc-mcp/actions/workflows/release.yml/badge.svg" alt="Release"></a>
13-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
14-
</p>
15-
16-
<p align="center">
5+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a><br>
176
<a href="README.md">English</a> | <b>简体中文</b>
187
</p>
198

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
<p align="center">
2-
<img src="docs/logo.png" alt="renderdoc-mcp" width="400">
3-
</p>
4-
5-
<h1 align="center">renderdoc-mcp</h1>
6-
7-
<p align="center">
8-
AI-native GPU frame debugging for RenderDoc
9-
</p>
10-
11-
<p align="center">
2+
<img src="docs/logo.png" alt="renderdoc-mcp" width="400"><br>
3+
<b>AI-native GPU frame debugging for RenderDoc</b><br><br>
124
<a href="https://github.com/JiaboLi-GitHub/renderdoc-mcp/actions/workflows/release.yml"><img src="https://github.com/JiaboLi-GitHub/renderdoc-mcp/actions/workflows/release.yml/badge.svg" alt="Release"></a>
13-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
14-
</p>
15-
16-
<p align="center">
5+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a><br>
176
<b>English</b> | <a href="README-CN.md">简体中文</a>
187
</p>
198

docs/logo.png

3.28 MB
Loading

src/core/capture.cpp

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ CaptureOptions makeDefaultOptions() {
5757
opts.captureCallstacksOnlyActions = false;
5858
opts.delayForDebugger = 0;
5959
opts.verifyBufferAccess = false;
60-
opts.hookIntoChildren = false;
61-
opts.refAllResources = false;
60+
opts.hookIntoChildren = true;
61+
opts.refAllResources = true;
6262
opts.captureAllCmdLists = false;
6363
opts.debugOutputMute = true;
6464
opts.softMemoryLimit = 0;
@@ -235,14 +235,29 @@ CaptureResult captureFrame(Session& session, const CaptureRequest& req) {
235235
}
236236
}
237237
if (!ctrl) {
238-
for (int attempt = 0; attempt < 5; ++attempt) {
239-
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
240-
ctrl = RENDERDOC_CreateTargetControl(
241-
rdcstr(), execResult.ident, rdcstr("renderdoc-mcp"), true);
242-
if (ctrl) {
243-
targetIdent = execResult.ident;
244-
break;
238+
// Extended retry for multi-process apps (e.g. Chrome GPU process)
239+
for (int attempt = 0; attempt < 15; ++attempt) {
240+
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
241+
// Try wider ident range for child processes
242+
for (uint32_t offset = 0; offset <= 10; ++offset) {
243+
uint32_t tryIdent = execResult.ident + offset;
244+
ctrl = RENDERDOC_CreateTargetControl(
245+
rdcstr(), tryIdent, rdcstr("renderdoc-mcp"), true);
246+
if (ctrl) {
247+
targetIdent = tryIdent;
248+
break;
249+
}
250+
if (offset > 0 && execResult.ident > offset) {
251+
tryIdent = execResult.ident - offset;
252+
ctrl = RENDERDOC_CreateTargetControl(
253+
rdcstr(), tryIdent, rdcstr("renderdoc-mcp"), true);
254+
if (ctrl) {
255+
targetIdent = tryIdent;
256+
break;
257+
}
258+
}
245259
}
260+
if (ctrl) break;
246261
}
247262
}
248263
}

0 commit comments

Comments
 (0)