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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user