Search Issue Tracker
Third Party Issue
Votes
5
Found in
2019.3
2019.3.15f1
2020.2
Issue ID
1277219
Regression
No
[iOS 13][iPhoneX][Metal] Dynamic resolution causes excessive memory usage in Heap
How to reproduce:
1. Open the attached '1277219.zip' project
2. Switch Platform to iOS and enable Development Build in Build Settings
3. Build for iOS and open the Xcode project
4. Go to Product > Scheme > Edit Scheme
5. Set Metal API Validation to Enabled
6. Set GPU Frame Capture to Metal
7. Deploy project to an iOS device
8. Click the camera button in Xcode's debug bar
9. Select Memory tab in the Sidebar
10. Observe heap allocated size
Expected result: Heap size is about 10-15MB
Actual result: Heap size is about 30-50MB or more
Reproducible with: 2019.3.0a1, 2019.4.11f1, 2020.1.6f1, 2020.2.0b4
Could not test with 2018.4, because of errors in Unity (multiple precompiled assemblies with the same name)
Reproducible with:
iPhone X (iOS 13)
iPhone Xs (iOS 13)
VLNQA00310 iPad Pro 12.9 1st gen (iOS 13.4.1) (Heapsize: 32-40MB)
Not reproducible with:
iPhone 6S (13.3.1)( Heapsize: 8-10MB)
iPhone XR (iOS 13.4.1) (Heapsize: 7.3-9MB)
iPad 9.7’ 6th gen (iOS 14.2) (Heapsize: 14-16MB)
iPhone SE 2nd gen (iOS 13.6, Unity 2020.2.0b4) (Heapsize: 4-5 MB)
Notes:
- Seems to be reproducible on iPhone X and similar devices according to users' reports
- Screenshots of the memory usage are added to the Edit
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
joshuacwilde
Sep 25, 2020 18:46
Corresponding thread : https://forum.unity.com/threads/4x-memory-usage-in-xcode-gpu-frame-capture.964385/