gpu: add an opt-in history limiter for overbright reflections #30
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!30
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-30"
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?
@oscarrc91 on GitHub · 2026-12-03 16:53 UTC · original
oscarrc91:fix/reflection-history-limit→main· +84 −9 · 4 files · 1 commits · closed without mergingWith ray tracing disabled, excessive reflected light in the title's history can leave eyes looking white or luminous. This adds an opt-in reflection-history limiter; the player who tested our local build on an RX 9070 XT confirmed that the white-eye defect disappeared with
VICTORY_REFLECT_HISTORY_MOST=0.5and RT still disabled.The limiter runs after the specifically identified
CS_UpdateHistory_e877ef6e_Wrappeddispatch. It bounds brightness relative to the ambient estimate and reduces strongly saturated contamination in the packed history. It does not replace ReVIctory's existing directional reflection-resolve pass or enable ray tracing.R32_UINTview containing packed R9G9B9E5 data; similarly named history shaders are left alone.0.5is the tested value, not a new global default.This is a targeted visual workaround, not a complete correction of the title's lighting model. A low limit can also darken legitimate bright reflections.
Validation
631b2ed4f2c3e41b7115198913c857a9310389c7.cargo test --offline --locked --release -p victory-gpu --lib ambient::tests -- --test-threads=1 --nocapturecargo test --offline --locked --release -p victory-gpu --lib live::tests -- --test-threads=1 --nocaptureVICTORY_REQUIRE_GPU_TEST=1andVICTORY_D3D12_ADAPTER=AMD Radeon RX 9070 XT, so unavailable hardware cannot silently pass that check.Attribution and existing work
Adapted from
guard_reflectin ProjectLeonida/mandy at 3fdfbaa, with ReVIctory-specific dispatch selection, resource checks and live controls. The donor's hardware-RT work is not part of this PR.Reviewed the existing open and closed ReVIctory PRs before opening this. The helper-lane correction in #14 and the tree/descriptor work in #29 address different paths; neither is duplicated here.
@ReTerryDavis on GitHub · 2026-12-04 02:02 UTC · original
Closing because
ambient.rswas overhauled ina094f8b, which now handles indoor overbright reflections and glowing eyes using the Scene StencilIS_INTERIORmask and source-levelRayMisscleanup without dimming outdoor reflections. Thanks for the clean port!Pull request closed