Skip to content

perf(rtx): precompute float light-pick delta, drop kernel f64 diff#347

Merged
jeffamstutz merged 1 commit into
NVIDIA:next_releasefrom
tarcila:delta-light-pick-as-single-precision
Jul 17, 2026
Merged

perf(rtx): precompute float light-pick delta, drop kernel f64 diff#347
jeffamstutz merged 1 commit into
NVIDIA:next_releasefrom
tarcila:delta-light-pick-as-single-precision

Conversation

@tarcila

@tarcila tarcila commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Store each light slot's pick probability as a standalone float host-side and read it directly, instead of differencing adjacent double lightPickCdf entries per pick in the kernels.
Keep precision while decreasing double precision usage in the kernel.

Store each light slot's pick mass (power_i/total) as a standalone float host-side and read it directly, instead of differencing adjacent double lightPickCdf entries per pick in the kernels — the standalone float represents a dim light's sub-epsilon mass that the float CDF diff would drop, so the kernel f64 arithmetic goes away with strictly more accurate mass. Perf-neutral.
@tarcila
tarcila requested a review from jeffamstutz July 17, 2026 17:39
@jeffamstutz
jeffamstutz merged commit cae1394 into NVIDIA:next_release Jul 17, 2026
8 checks passed
@tarcila
tarcila deleted the delta-light-pick-as-single-precision branch July 17, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants