You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add options to reduce lightmaps disk usage.
Added BakedLightmap.use_hdr and BakedLightmap.use_color properties that can reduce the flie size of lightmap texture at the expense of quality. Changed the denoiser to work in a single buffer, reducing RAM usage. Also added the `-mstackrealign` flag in the denoiser compilation for MinGW builds. This flag helped fix a bug in Embree, so I want to see if it will help fix GH #45296.
This commit is contained in:
@@ -1369,6 +1369,7 @@ LightmapperCPU::BakeError LightmapperCPU::bake(BakeQuality p_quality, bool p_use
|
||||
if (parameters.environment_panorama.is_valid()) {
|
||||
parameters.environment_panorama->lock();
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < mesh_instances.size(); i++) {
|
||||
|
||||
if (!mesh_instances[i].generate_lightmap) {
|
||||
@@ -1389,6 +1390,7 @@ LightmapperCPU::BakeError LightmapperCPU::bake(BakeQuality p_quality, bool p_use
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (parameters.environment_panorama.is_valid()) {
|
||||
parameters.environment_panorama->unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user