[Feature Request] apitrace/renderdoc capture support
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- linux
- Lĩnh vực
- devtools, operating-systems
Hướng nghiên cứu
Bắt đầu bằng cách xem xét quy trình capture được mô tả ở đây, bao gồm RenderDoc, apitrace, LD_PRELOAD và bối cảnh Steam Linux Runtime. Xác định một cách tiếp cận hướng tới người dùng, hỗ trợ các kịch bản capture Vulkan và OpenGL đã nêu mà không yêu cầu thiết lập tùy ý các tracer bên ngoài, sau đó xác thực cách tiếp cận này với ví dụ N++.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 1.5k
- Fork
- 98
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/steam-runtime
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
ValveSoftware/steam-runtime#876 ·
-
Runtime 4 on AArch64: diagnostic for loaded libraries in the first bubblewrap prerequisite childĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
ValveSoftware/steam-runtime#875 ·
-
Pressure Vessel
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ValveSoftware/steam-runtime#873 · 4 bình luận ·
-
A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPUĐang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 42/100
ValveSoftware/steam-runtime#872 · 25 bình luận ·
-
Nov 12th Steam Update Breaks Compatibility with any game that uses a dedicated GPU on Linux.Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
ValveSoftware/steam-runtime#871 · 13 bình luận ·
Tất cả issue của ValveSoftware/steam-runtime
Issue tương tự
-
Bump runtime to 26.08Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
flathub/cc.arduino.IDE2#168 ·
-
area:docs community needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NetSparkleUpdater/NetSparkle#759 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sidebandstudio/clawtrate#1114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100