mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-24 16:34:24 +00:00
gl_shader_disk_cache.cpp: Flush transferable_file and precompiled_file more often (#6483)
This commit is contained in:
parent
2e655f73b8
commit
b4db9aebf2
1 changed files with 3 additions and 0 deletions
|
@ -372,6 +372,7 @@ void ShaderDiskCache::SaveRaw(const ShaderDiskCacheRaw& entry) {
|
|||
return;
|
||||
}
|
||||
transferable.insert({id, entry});
|
||||
transferable_file.Flush();
|
||||
}
|
||||
|
||||
void ShaderDiskCache::SaveDecompiled(u64 unique_identifier,
|
||||
|
@ -439,6 +440,8 @@ void ShaderDiskCache::SaveDumpToFile(u64 unique_identifier, GLuint program, bool
|
|||
// SaveDecompiled is used only to store the accurate multiplication setting, a better way is to
|
||||
// probably change the header in SaveDump
|
||||
SaveDecompiledToFile(precompiled_file, unique_identifier, {}, sanitize_mul);
|
||||
|
||||
precompiled_file.Flush();
|
||||
}
|
||||
|
||||
bool ShaderDiskCache::IsUsable() const {
|
||||
|
|
Loading…
Reference in a new issue