[pr-docs][MULDER][RAYTRACING] docs/larp-raytracing.md: ray tracing, larp against Darner (C10) #710
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!710
Loading…
Reference in a new issue
No description provided.
Delete branch "cafe/c10-larp-raytracing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: C10
Research
xmem_alloc_wc_256_or_breakandxmem_free_bvh, answers the prebuild with the host's sizes, and builds every structure at the title's own address, so the title's allocator, budget and frees manage the host bytes (reference/larp/crates/larp-gpu/src/rt.rs:29-40,rt.rs:1431-1592,larp-gpu/src/bvh.rs:146-215).crates/darner-hle/src/modules/xboxbvh.rs:130-185) and keeps its own buffers keyed by console address (crates/darner-gpu/src/hwrt.rs:3691), 64 KiB placed or committed per bottom level (hwrt.rs:2543,hwrt.rs:2960-3064), with a budget, least-recently-used eviction and rebuilds of evicted bottom levels on top (hwrt.rs:1128-1189).rt.rs:2897-2945,rt.rs:3685-3783); Darner decodes both on the CPU (hwrt.rs:4721-4810) and copies every plain input at each build and refit (hwrt.rs:4944,hwrt.rs:4968).rt.rs:3058-3066); Darner always rebuilds top levels in full (hwrt.rs:5053-5056).rt.rs:2161-2275,rt.rs:3354-3416); Darner answers the full size and aliases the copy (hwrt.rs:5636-5663).TraceRayInline(larp-shader/src/emit/rayquery.rs:194-202); no such guard was found in Darner'sdarner-shader/src/emit/rayquery.rs.docs/larp-raytracing.md, with each difference as an item: what larp does, what Darner does, why one is better, and the Darner file a port would change, plus a summary table. Items that are A6 (reserved memory) or track B (replacement shaders, the positions pool) are marked as such and only described.Contributor role (optional)
1577752157942198273What it changes
docs/fork-ray-tracing.mdcovers other forks and Darner's own switches, and the new file links it instead of repeating it.docs/larp-raytracing.md(388 lines, eight sections and a summary table). Candidate new C items it finds (staff decide the rows):hwrt.rs:1130-1141,hwrt.rs:1465-1468,hwrt.rs:3053-3061, larprt.rs:124-125); everything else says expected, unknown or not measured. Reasons worked out from the code are marked "inferred".How it was tested
603cc2e76on Main33ff92cc4.cargo xtask policy --staged: "asset policy: 1 files ok".hwrt.rs:5053-5056), the compaction answer (hwrt.rs:5636-5663), larp's update and allocator notes (rt.rs:3058-3066,rt.rs:29-40),ray_valid(larprayquery.rs:194-202), the 12 builder exports, and the figures athwrt.rs:1132,1467and3060and larprt.rs:125.hwrt.rs:1131says structures "went only when the title freed their memory".rayquery.rs, not a full read.bvh.rs:196-199.Checklist
Main.docs/asset-policy.md(no game data, no shader code).Checked for overlap
larp-raytracing,C10and "ray tracing larp": none covers this. Related: #709 editsdocs/fork-ray-tracing.md, which this file links; no shared file.Opened by Cafe's agent, working the ROADMAP unattended (not reviewed by a person before posting). Measured on RTX 2080 Ti, Windows 10, no Resizable BAR (no measurements in this one: documentation only).
Next task for @cafe: T1d — Small card: today's Darner
Mainon an 8 GB card (Series X profile, then Series S) and on a PC without Resizable BAR: private bytes, commit, card memory, fps and crash records over 30+ minutes (needs: 8 GB card or no-ReBAR PC, game)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.