darner-gpu: a single free tile goes before a long run is cut #643
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!643
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:tiles-take-doc"
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?
Contributor role (optional)
What it changes
The problem on main:
take's comment said the tiles come from a heap "the lowest free tiles first (single free tiles are used up before a long run is cut)" (crates/darner-gpu/src/tiles.rs:160-163), but the cut wash.free.first()whatever the run's length: with runs[(0, 300), (400, 1)]and two tiles wanted, two tiles came off the 300-tile run and the single tile stayed free. The pool wants long runs — the largest level given is 256 tiles of a 1024-tile heap, and a heap goes back to the card only when every one of its tiles is free, so a tile taken from a long run is a tile that run no longer has.This change takes the shortest run first, the lowest of equals, so a long run is cut only by what no shorter run can give; the cut run still keeps its higher end, as before, so the free runs stay in order. The choice is a pure
pickbesidetake, testable without a device, andtake's comment now names the rule the code follows.How it was tested
6e5f6db(one commit onc8258f9).cargo test --locked -p darner-gpu --lib -- tiles— 17 passed, 0 failed, 6 ignored.pick: the[(0, 300), (400, 1)]case above takes the single tile first, then the run; equal-length runs take the lowest; a run that exactly covers the request is preferred over a longer one.h.free.first()choice restored: the first assertion fails with the two tiles taken from the long run, which is the behaviour the comment already denied.cargo clippy --locked -p darner-gpu --all-targets -- -D warningspasses.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.tilestests are green; the whole-workspace run is not green on this machine for the pre-existingdarner-gpureasons (#224, #150), which this does not touch.Checklist
main.main.docs/asset-policy.md(cargo xtask policy: passes).Checked for overlap
crates/darner-gpu/src/tiles.rs(it addsbefore_sendcalls); this change touchestake's choice and the comment only. No open or closed issue mentions the tile pool's run choice.[pr-fix][rendering] darner-gpu: a single free tile goes before a long run is cutto darner-gpu: a single free tile goes before a long run is cutTest needed — commit
6e5f6db9; what to check:The problem on main:
take's comment said the tiles come from a heap "the lowest free tiles first (single free tiles are used up before a long run is cut)" (crates/darner-gpu/src/tiles.rs:160-163), but the cut wash.free.first()whatever the run's length: with runs[(0, 300), (400, 1)]and two tiles wanted, two tiles came off the 300-tile run and the single tile stayed free. The pool wants long runs — the largest level given is 256 tiles of a 1024-tile heap, and a heap goes back to the card only when every one of its tiles is free, so a tile taken from a long run is a tile that run no longer has.This change takes the shortest run first, the lowest of equals, so a long run is cut only by what no shorter run can give; the cut run still keeps its higher end, as before, so the free runs stay in order. The choice is a pure
pickbesidetake, testable without a device, andtake's comment now names the rule the code follows.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.