mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-24 00:10:13 +00:00
[TEST] Adjustments on memory collection
This commit is contained in:
@@ -221,7 +221,8 @@ void TextureCache<P>::EnsureHeadroom(bool allow_download) {
|
||||
if (usage <= limit) {
|
||||
return;
|
||||
}
|
||||
ReclaimMemory(usage - limit, allow_download);
|
||||
const u64 target = (limit / 100) * RECLAIM_TARGET_PERCENT;
|
||||
ReclaimMemory(usage - target, allow_download);
|
||||
}
|
||||
|
||||
template <class P>
|
||||
|
||||
@@ -121,6 +121,7 @@ class TextureCache : public VideoCommon::ChannelSetupCaches<TextureCacheChannelI
|
||||
static constexpr u64 FALLBACK_MEMORY_BUDGET = 2_GiB;
|
||||
static constexpr u32 USAGE_REFRESH_INTERVAL = 16;
|
||||
static constexpr u64 RECLAIM_GUARD_FRAMES = 8;
|
||||
static constexpr u64 RECLAIM_TARGET_PERCENT = 88;
|
||||
|
||||
using Runtime = typename P::Runtime;
|
||||
using Image = typename P::Image;
|
||||
|
||||
Reference in New Issue
Block a user