diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-28 05:29:22 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:34 +0200 |
commit | dd39b87b0cfb640418278c55669f621bfd4addf5 (patch) | |
tree | 8acd0da47467ec488906ca1ef6d636f44326743d /src | |
parent | shader: Fix TMML queries (diff) | |
download | yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.tar yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.tar.gz yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.tar.bz2 yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.tar.lz yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.tar.xz yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.tar.zst yuzu-dd39b87b0cfb640418278c55669f621bfd4addf5.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 13 | ||||
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 8 |
2 files changed, 12 insertions, 9 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index d72ca5acc..25b658b2a 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -64,12 +64,13 @@ void EmuThread::run() { emit LoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0); - system.Renderer().ReadRasterizer()->LoadDiskResources( - system.CurrentProcess()->GetTitleID(), stop_token, - [this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) { - emit LoadProgress(stage, value, total); - }); - + if (Settings::values.use_disk_shader_cache.GetValue()) { + system.Renderer().ReadRasterizer()->LoadDiskResources( + system.CurrentProcess()->GetTitleID(), stop_token, + [this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) { + emit LoadProgress(stage, value, total); + }); + } emit LoadProgress(VideoCore::LoadCallbackStage::Complete, 0, 0); gpu.ReleaseContext(); diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index ac4ea88d3..35ce23696 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -218,9 +218,11 @@ int main(int argc, char** argv) { // Core is loaded, start the GPU (makes the GPU contexts current to this thread) system.GPU().Start(); - system.Renderer().ReadRasterizer()->LoadDiskResources( - system.CurrentProcess()->GetTitleID(), std::stop_token{}, - [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); + if (Settings::values.use_disk_shader_cache.GetValue()) { + system.Renderer().ReadRasterizer()->LoadDiskResources( + system.CurrentProcess()->GetTitleID(), std::stop_token{}, + [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); + } void(system.Run()); while (emu_window->IsOpen()) { |