[Feature Request] apitrace/renderdoc capture support
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- linux
调研方向
首先,检查此处描述的捕获工作流,包括 RenderDoc、apitrace、LD_PRELOAD 以及 Steam Linux Runtime 上下文。定义一种面向用户的方法,在不要求任意设置外部 tracer 的情况下支持所述的 Vulkan 和 OpenGL 捕获场景,然后针对 N++ 示例对其进行验证。
由索引模型根据 Issue 内容生成。
描述
A common method of debugging issues with applications is tracing/capturing graphics API calls - on Linux the two most prominent tools are RenderDoc, for Vulkan and OpenGL (Core Profile), and apitrace, for OpenGL (Core and Compatibility Profiles).
For 3.0 and newer this is easier said than done - a frustrating part of this process is having to LD_PRELOAD tracer binaries, unless the tool has a nicer way of injecting its tracer. Problem is, you currently have to either preload a system-installed tracer, which can easily break for a multitude of reasons (libstdc++ breakages, apps being built with RUNPATH which LD_PRELOAD seems to erase for some reason, etc), or manually build the tracer just for SLR, which is possible...
https://flibitijibibo.com/files/steamrt3-tracers.tar.bz2
... but still a mess to guide users through, and only works if you built with -Wl,--disable-new-dtags to use RPATH which doesn't get erased by LD_PRELOAD, or somehow install the entire tracing tool to the SLR sysroot (or have developers add the tool to the game depot directly, which is maybe the worst route of all).
The best example I have right now is N++, which recently upgraded to SDL3 and SLR 3.0:
https://store.steampowered.com/app/230270/N_NPLUSPLUS/
The latest build now ships with RPATH instead of RUNPATH, so if you take the tracers archive above and set LD_PRELOAD=/path/to/glxtrace.so SDL_VIDEO_DRIVER=x11 %command% you should be able to make a trace file. This took a lot of trial-and-error to get working, and it's still a lot to ask of users to preload an arbitrary sofile from some random dork's personal website.
It would be extremely useful for customers and developers alike to be able to trivially set up apitrace/renderdoc captures, so that customers can provide the best diagnostic information possible both for app developers as well as driver developers, who can work best when they have trace data to reproduce issues locally.
- 主要语言
- Shell
- 星标
- 1.5k
- 派生
- 98
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ValveSoftware/steam-runtime 的其他 Issue
-
难度 5/5 一周以上 新手友好度 12/100
ValveSoftware/steam-runtime#876 ·
-
Runtime 4 on AArch64: diagnostic for loaded libraries in the first bubblewrap prerequisite child未关闭
难度 4/5 3-5 天 新手友好度 18/100
ValveSoftware/steam-runtime#875 ·
-
Pressure Vessel
难度 4/5 3-5 天 新手友好度 48/100
ValveSoftware/steam-runtime#873 · 4 条评论 ·
-
A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPU未关闭
难度 4/5 1-2 天 新手友好度 42/100
ValveSoftware/steam-runtime#872 · 25 条评论 ·
-
难度 4/5 3-5 天 新手友好度 43/100
ValveSoftware/steam-runtime#871 · 13 条评论 ·
查看 ValveSoftware/steam-runtime 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
flathub/cc.arduino.IDE2#168 ·
-
area:docs community needs-triage
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
NetSparkleUpdater/NetSparkle#759 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
sidebandstudio/clawtrate#1114 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100