mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
vk: Improved OOM handling
- Don't aggressively delete surfaces unless we're really crashing - Release barrier resources before destroying the surface in case of fatal crash
This commit is contained in:
parent
72abc0f219
commit
872aa2b358
1 changed files with 2 additions and 1 deletions
|
@ -207,10 +207,11 @@ namespace vk
|
|||
case rsx::problem_severity::low:
|
||||
return (rtt->unused_check_count() >= 2);
|
||||
case rsx::problem_severity::moderate:
|
||||
return (rtt->unused_check_count() >= 1);
|
||||
case rsx::problem_severity::severe:
|
||||
return (rtt->unused_check_count() >= 1);
|
||||
case rsx::problem_severity::fatal:
|
||||
// We're almost dead anyway. Remove forcefully.
|
||||
rtt->clear_rw_barrier();
|
||||
vk::get_resource_manager()->dispose(rtt);
|
||||
return true;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue