Russian-Doom / russian-doom

A limit-removing source port of Doom, Heretic and Hexen. It has numerous vanilla bug fixes, enhanced 640x400 and 1280x800 rendering resolutions, improved game palettes and offers many optional aesthetic game enhancements along with the maximum possible translation to the Russian language.
GNU General Public License v2.0
80 stars 14 forks source link

Make visplane variables strictly local #426

Closed JNechaevsky closed 1 year ago

JNechaevsky commented 1 year ago

The idea is to get rid of global variables to let R_DrawSpan(Low) use pre-given values instead of gathering them from outside.

According to my benchmarks, this micro-optimization makes visplane drawing slightly faster on both extreme scenes (~+1-2 fps, testing level) and timedemo runs. Same potential probably lies in column drawing functions as well.