Band-aid solution for 'Disk Shader Cache' (#5188)

* Enable 'Accurate Multiplication' by default.

* Move 'Disk Shader Cache' to the 'Advanced' tab

* Prevent enabling 'Disk Shader Cache' when 'Enable Hardware Shader' or 'Accurate Multiplication' is disabled.

* Do not load 'Disk Shader Cache' when 'Accurate Multiplication' is disabled.

* Add a tooltip for 'Disk Shader Cache'.
This commit is contained in:
tywald 2020-11-06 19:07:59 +01:00 committed by GitHub
parent 1bb20571b1
commit 2e0ce86c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 37 additions and 23 deletions

View file

@ -106,8 +106,8 @@ ShaderDiskCache::ShaderDiskCache(bool separable) : separable{separable} {}
std::optional<std::vector<ShaderDiskCacheRaw>> ShaderDiskCache::LoadTransferable() {
const bool has_title_id = GetProgramID() != 0;
if (!Settings::values.use_hw_shader || !Settings::values.use_disk_shader_cache ||
!has_title_id) {
if (!Settings::values.use_hw_shader || !Settings::values.shaders_accurate_mul ||
!Settings::values.use_disk_shader_cache || !has_title_id) {
return std::nullopt;
}
tried_to_load = true;