summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-02-06 15:01:25 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-02-06 15:01:25 +0100
commitb9cfc74f292484a30ebb57c16f1a6a05a97a5134 (patch)
treece610494b1a07dfb9c1a12e85299ed77b350011f /scene
parentfd0d2dcabf5b7418691b693cd01baecbb69fdeb9 (diff)
Decrease the default number of SDFGI cascades to 4
This improves rendering performance noticeably, especially when the camera moves fast. On a medium-sized test scene on a GTX 1080 in 2560×1440, going from 6 to cascades saves 0.5 ms of frame time while looking visually identical (as most of the scene fits within the 4 cascades).
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/environment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/environment.h b/scene/resources/environment.h
index b04723a221..cc20f59698 100644
--- a/scene/resources/environment.h
+++ b/scene/resources/environment.h
@@ -147,7 +147,7 @@ private:
// SDFGI
bool sdfgi_enabled = false;
- int sdfgi_cascades = 6;
+ int sdfgi_cascades = 4;
float sdfgi_min_cell_size = 0.2;
SDFGIYScale sdfgi_y_scale = SDFGI_Y_SCALE_DISABLED;
bool sdfgi_use_occlusion = false;