Repository navigation
Conversation
|
Follow-up: host shader profiling now measures peak RSS for each CLI tool on Linux when GNU time is available. The independent wrapper avoids the parent's inherited high-water RSS and the sampling gaps of short-lived processes. Measurements are optional, timeouts terminate the process group, missing measurements stay null, and no title identifiers are emitted. Normal unprofiled execution is unchanged. The report does not include persistent DXC, aggregate simultaneous memory or driver/VRAM. Validation:
GNU time's rare exec failures for otherwise executable paths may be reported as retryable 126/127 rather than an OSError when profiling. No new refusal-cache classification. Remaining: real-title cold/warm capture, driver-side memory, full GPU check and AMD run. |
|
Follow-up to the real-workload measurements in #242. Thank you for the comparison; I agree the synthetic speedups are not evidence of noticeable title startup improvement. Updated head: 94ea30b. The existing --profile-pipelines capture now also writes stage-summary.json with the host runtime compiler aggregate and the vkd3d-proton PSO events from the same run. It separates summed event durations from the union of observed time intervals and reports peak overlapping events (not worker count). Host and PSO totals can overlap and should not be added; PSO events are not exclusive driver compilation times. Missing sources are null, not zero. No shader identifiers or raw paths in the aggregate. Preparation remains a separate log aggregate. Validation: six no-GPU groups and 8/8 Lanes gates passed on RTX 4080/GE-Proton11-14; unchanged runtime and fixture source checked. Two actual Lanes shader self-test launches also passed through Host.run_game with --profile-pipelines. First run, cold test prefix: xshader 4.267 ms, DXC 13.271 ms, DXV 4.458 ms, one host compilation (24.114 ms end-to-end), one vkd3d PSO event (4.160 ms). Second run: no host requests, two PSO events (4.546 ms). These are functionality checks, not a statistically meaningful cold/warm performance comparison or ProjectScarlett data. The local older title log does not include the needed trace and I do not have your recorded 83-request corpus. If you have time, a cold/warm stage-summary.json and the preparation timing aggregate from your actual title run would be very useful; no raw retail files, shader inputs or private logs needed. This remains a draft pending AMD/full validation. |
Purpose
The startup work in docs/FOCUS.md needs evidence distinguishing xshader, DXC (including retries), DXV, cache lookup/lock/publish and driver-side compilation. Add opt-in aggregate host wall timings for preparation and runtime via TUXBOX_PROFILE_SHADERS=1; --profile-pipelines also enables the runtime summary unless overridden.
Count request outcomes, exact-source reuse, content-DXIL reuse, tool attempts, timeout/error outcomes, cumulative and maximum elapsed time. Concurrent durations are not CPU time. No shader hashes, title identifiers or raw error messages are included. Empty warm sessions are legitimate when the provider serves its cache directly. No compilation flags, timeouts, cache identities or translation semantics are changed. This does not yet measure per-stage memory or dxil-spirv separately from driver time.
Evidence
Draft pending full check on this exact branch and AMD validation; actual ProjectScarlett cold/warm profiling and per-stage memory measurements remain to be done.