perf(tv): cap image cache at 64MB on TV

TV boxes share limited RAM with 4K video decode buffers, so the 100MB
phone budget crowds out the decoder. Low-RAM TVs already on the reduced
tier keep the tighter 48MB cap.

From #1479.
This commit is contained in:
KakarottoCake
2026-07-05 02:28:43 +02:00
committed by edde746
parent 11f7fd766d
commit cd8212fb53
+4
View File
@@ -103,6 +103,10 @@ class DevicePerformance {
} else if (isReduced) {
cache.maximumSize = 400;
cache.maximumSizeBytes = 48 << 20; // 48MB
} else if (PlatformDetector.isTV()) {
// TV boxes share limited RAM with 4K video decode buffers.
cache.maximumSize = 500;
cache.maximumSizeBytes = 64 << 20; // 64MB
} else {
cache.maximumSize = 800;
cache.maximumSizeBytes = 100 << 20; // 100MB