View Single Post
Old 12 August 2022, 01:08   #129
pipper
Registered User
 
Join Date: Jul 2017
Location: San Jose
Posts: 653
Great!

It’s looking at bit 0 of the MIDDLEY variable and adjusts the render buffer pointer to the middle line accordingly. It’s not really a mathematically correct solution, since moving the start line of the rendering up and down should also affect the sampling of the floor (instead of just pushing it up and down on the screen). But that would require more work to get “snap floor rendering to even lines only” working than I’m willing to spend on it.
As I said, I’d we can get “just render to a buffer of half the height” mode working, the extra doubleheight floor setup code can go away completely and the maths would all fall out nicely.
pipper is offline  
 
Page generated in 0.06081 seconds with 11 queries