You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Add an editor setting to configure number of threads for lightmap baking
This can be used to free some CPU cores when baking lightmaps. When using fewer CPU cores, lightmap baking is slower but background tasks aren't slowed down as much.
This commit is contained in:
@@ -545,6 +545,9 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
_initial_set("editors/3d/default_z_near", 0.05);
|
||||
_initial_set("editors/3d/default_z_far", 500.0);
|
||||
|
||||
_initial_set("editors/3d/lightmap_baking_number_of_cpu_threads", 0);
|
||||
hints["editors/3d/lightmap_baking_number_of_cpu_threads"] = PropertyInfo(Variant::INT, "editors/3d/lightmap_baking_number_of_cpu_threads", PROPERTY_HINT_RANGE, "-2,128,1", PROPERTY_USAGE_DEFAULT);
|
||||
|
||||
// 3D: Navigation
|
||||
_initial_set("editors/3d/navigation/navigation_scheme", 0);
|
||||
_initial_set("editors/3d/navigation/invert_y_axis", false);
|
||||
|
||||
Reference in New Issue
Block a user