mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-10 03:35:00 -06:00
Disable buffer gc for now
This commit is contained in:
parent
8fce53023e
commit
c30b761c65
@ -933,11 +933,12 @@ void BufferCache::RunGarbageCollector() {
|
||||
DeleteBuffer(buffer_id);
|
||||
downloads_done = true;
|
||||
};
|
||||
lru_cache.ForEachItemBelow(gc_tick - ticks_to_destroy, clean_up);
|
||||
if (downloads_done) {
|
||||
// For now we can do this to avoid re-uploading the buffer that is being downloaded, potentially losing GPU modifications.
|
||||
scheduler.Finish();
|
||||
}
|
||||
// This is still not figured out...
|
||||
// lru_cache.ForEachItemBelow(gc_tick - ticks_to_destroy, clean_up);
|
||||
// if (downloads_done) {
|
||||
// scheduler.Finish();
|
||||
// scheduler.PopPendingOperations();
|
||||
// }
|
||||
}
|
||||
|
||||
void BufferCache::TouchBuffer(const Buffer& buffer) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user