summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-02-11 16:26:09 -0800
committerclayjohn <claynjohn@gmail.com>2023-02-11 16:26:09 -0800
commit340c3b84fd9f06f4d4a794c0a0b8e95165aeee9f (patch)
tree64377594bd8f08f7bfaf6a633636c650b3659dca
parented85a2c8ceae048c2b29bc6ccf6f53a9c70ec811 (diff)
Set Default compression to VRAM uncompressed for LightmapGI
This increases the speed to be near instant and removes the perceived lightmap bake speed regression We need to investigate the speed and quality issues with BPTC and re-enable compression when we can
-rw-r--r--scene/3d/lightmap_gi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/3d/lightmap_gi.cpp b/scene/3d/lightmap_gi.cpp
index fb74cffc94..b4387b0f3c 100644
--- a/scene/3d/lightmap_gi.cpp
+++ b/scene/3d/lightmap_gi.cpp
@@ -163,7 +163,8 @@ Array LightmapGIData::_get_light_textures_data() const {
config->set_value("remap", "importer", "2d_array_texture");
config->set_value("remap", "type", "CompressedTexture2DArray");
if (!config->has_section_key("params", "compress/mode")) {
- config->set_value("params", "compress/mode", 2); //user may want another compression, so leave it be
+ // User may want another compression, so leave it be, but default to VRAM uncompressed.
+ config->set_value("params", "compress/mode", 3);
}
config->set_value("params", "compress/channel_pack", 1);
config->set_value("params", "mipmaps/generate", false);