aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorCamilleLaVey <camillelavey99@gmail.com>2025-07-12 20:10:40 +0200
committerCamilleLaVey <camillelavey99@gmail.com>2025-07-12 20:10:40 +0200
commitcd394fc40f3847878e3646c07fa78a13df4cce30 (patch)
treef98f0c883598f333aae5a17b50290b83363ed5cb /src/video_core/texture_cache
parent3df06da02cf5e86147aa5c8af661313985c4f8ca (diff)
revert [android] Snapdragon 865 patches (#23)
revert [android] Snapdragon 865 patches (#23) Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Reviewed-on: https://git.bixed.xyz/Bix/eden/pulls/23 Reverted due to heavy performance hits on Android with higher specifications, will be adjusted to be included in a specific build for older A6XX devices, as 855, 860, 865, 870, meanwhile it does fix critical issues with certain games crashing due to memory and VRAM usage, hits performance on SoC that can do it without this special flags.
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache_base.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/video_core/texture_cache/texture_cache_base.h b/src/video_core/texture_cache/texture_cache_base.h
index 3f67828b86..cbc27344b0 100644
--- a/src/video_core/texture_cache/texture_cache_base.h
+++ b/src/video_core/texture_cache/texture_cache_base.h
@@ -110,17 +110,10 @@ class TextureCache : public VideoCommon::ChannelSetupCaches<TextureCacheChannelI
static constexpr size_t UNSET_CHANNEL{std::numeric_limits<size_t>::max()};
- #ifdef ANDROID
- static constexpr s64 TARGET_THRESHOLD = 3_GiB;
- static constexpr s64 DEFAULT_EXPECTED_MEMORY = 1_GiB + 125_MiB;
- static constexpr s64 DEFAULT_CRITICAL_MEMORY = 1_GiB + 625_MiB;
- static constexpr size_t GC_EMERGENCY_COUNTS = 2;
- #else
static constexpr s64 TARGET_THRESHOLD = 4_GiB;
static constexpr s64 DEFAULT_EXPECTED_MEMORY = 1_GiB + 125_MiB;
static constexpr s64 DEFAULT_CRITICAL_MEMORY = 1_GiB + 625_MiB;
static constexpr size_t GC_EMERGENCY_COUNTS = 2;
- #endif
using Runtime = typename P::Runtime;
using Image = typename P::Image;
@@ -486,11 +479,7 @@ private:
};
Common::LeastRecentlyUsedCache<LRUItemParams> lru_cache;
- #ifdef ANDROID
- static constexpr size_t TICKS_TO_DESTROY = 6;
- #else
static constexpr size_t TICKS_TO_DESTROY = 8;
-#endif
DelayedDestructionRing<Image, TICKS_TO_DESTROY> sentenced_images;
DelayedDestructionRing<ImageView, TICKS_TO_DESTROY> sentenced_image_view;
DelayedDestructionRing<Framebuffer, TICKS_TO_DESTROY> sentenced_framebuffers;