luciusDXL / TheForceEngine

Modern "Jedi Engine" replacement supporting Dark Forces, mods, and in the future Outlaws.
https://TheForceEngine.github.io
GNU General Public License v2.0
976 stars 71 forks source link

[Fix] Clear color buffers with opaque black instead of transparent black (noop) #378

Closed JakeSmarter closed 7 months ago

JakeSmarter commented 7 months ago

The current code does functionally a noop but not effectively. Hence, it still costs cycles. This PR does not fix visibly anything but finally does what was originally intended. We get our electron’s worth. :wink:

Btw, clearing color buffers is quite expensive while gaining very little. It is best to avoid doing it. On the other hand, zeroing Z buffers on modern GPUs is very fast.