Open zZeck opened 3 years ago
I can confirm this PR works as expected:
In hindsight, I should have made the comparison images on a level with straight lines in the floor texture. Thanks for vouching for the PR. Planning on doing anything else in ROTT?
Planning on doing anything else in ROTT?
I don't have much in mind right now, but maybe I'll contribute QOL improvements in the future :slightly_smiling_face:
The original code has insufficient precision in the xstep and ystep used for floor/ceiling. This lack of precision results in very visible error accumulating as DrawRow renders left to right. Look at the distortion on the right side in the original. Original Improved
Credit to a 2019 Kaiser tweet for pointing out the problem.
It would be nice if https://github.com/LTCHIPS/rottexpr/pull/42 went in ahead of this. I did a hackier work around the same mingw-w64 problem for w_wad.c.