Fix accumulation buffer #1

Closed
opened 2024-06-04 00:39:38 +00:00 by matthew · 1 comment
Owner

I'm pretty sure the accumulation buffer isn't doing anything after a few iterations. It's hard to say because the rate of change is expected to slow down over time as the values converge but after a few updates, if you watch the window and just focus on one area the pixels don't seem to be changing at all.

I didn't actually document accumulation_buffer.rs, but it appears to be using Kahan summation.

I'm pretty sure the accumulation buffer isn't doing anything after a few iterations. It's hard to say because the rate of change is expected to slow down over time as the values converge but after a few updates, if you watch the window and just focus on one area the pixels don't seem to be changing at all. I didn't actually document `accumulation_buffer.rs`, but it appears to be using Kahan summation.
Author
Owner

After carefully reading through the Kahan suimmation code, the summation was fine and the problem actually turned out to be the way I was calculating the final colour from the summed colours and weights.

After carefully reading through the Kahan suimmation code, the summation was fine and the problem actually turned out to be the way I was calculating the final colour from the summed colours and weights.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: matthew/vanrijn#1
No description provided.