]> git.xonotic.org Git - xonotic/darkplaces.git/commit
r_viewfbo 0: skip the postprocessing/blending pass if there is nothing to blend.
authorRudolf Polzer <divVerent@gmail.com>
Tue, 2 Jan 2024 20:48:07 +0000 (12:48 -0800)
committerdivVerent <divVerent@gmail.com>
Wed, 3 Jan 2024 19:35:20 +0000 (14:35 -0500)
commitc9eba321f6e5e67749bc42eb73bddf16af294bbc
treefd0fc932d10838c7f3f60ef7aa92fd5f2c7557a0
parent64d43bef594e3d996de4f8e008ff74e3258bc2cc
r_viewfbo 0: skip the postprocessing/blending pass if there is nothing to blend.

May save some fps on low-end systems.

NOTE: Had to make sure that 2D rendering does not enable depth test,
as in r_skipblend mode, the main framebuffer Z values are written to as
part of regular 3D rendering. There appear to be no behavioral changes
from this, but we need to be careful here.

r_viewfbo 1 disables this logic (it differs in no other way from r_viewfbo 0)
gl_rmain.c
r_shadow.c
render.h