mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add toggle for enabling or disabling RenderingDevice's pipeline cache.
This commit is contained in:
parent
655e93d584
commit
ecaafa6001
3 changed files with 7 additions and 1 deletions
|
@ -5089,7 +5089,8 @@ Error RenderingDevice::initialize(RenderingContextDriver *p_context, DisplayServ
|
|||
draw_list = nullptr;
|
||||
compute_list = nullptr;
|
||||
|
||||
if (main_instance) {
|
||||
bool project_pipeline_cache_enable = GLOBAL_GET("rendering/rendering_device/pipeline_cache/enable");
|
||||
if (main_instance && project_pipeline_cache_enable) {
|
||||
// Only the instance that is not a local device and is also the singleton is allowed to manage a pipeline cache.
|
||||
pipeline_cache_file_path = vformat("user://vulkan/pipelines.%s.%s",
|
||||
OS::get_singleton()->get_current_rendering_method(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue