mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 16:20:22 +01: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
|
|
@ -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…
Reference in a new issue