瀏覽代碼

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
clayjohn 2 年之前
父節點
當前提交
340c3b84fd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scene/3d/lightmap_gi.cpp

+ 2 - 1
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", "importer", "2d_array_texture");
 		config->set_value("remap", "type", "CompressedTexture2DArray");
 		config->set_value("remap", "type", "CompressedTexture2DArray");
 		if (!config->has_section_key("params", "compress/mode")) {
 		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", "compress/channel_pack", 1);
 		config->set_value("params", "mipmaps/generate", false);
 		config->set_value("params", "mipmaps/generate", false);