- Home /
WebPlayer memory usage
Hello, I'm developing a game for the WebPlayer, and am having trouble with memory management. The issues is that that game uses about a gig of memory before even logging in. Also, the profiler only shows about 230MB worth of memory being used, so my question is... where are the extra 800MB comming from?
Here some data for the project:
***Player size statistics***
Level 0 'Assets/1Loader.unity' uses 1.6 MB compressed / 6.6 MB uncompressed.
Level 1 'Assets/0Client.unity' uses 19.5 MB compressed / 120.0 MB uncompressed.
Total compressed size 21.1 MB. Total uncompressed size 126.5 MB.
Textures 64.0 mb 51.0%
Meshes 1.2 mb 0.9%
Animations 16.0 mb 12.7%
Sounds 6.2 mb 5.0%
Shaders 36.0 kb 0.0%
Other Assets 24.2 mb 19.3%
Levels 5.3 mb 4.2%
Scripts 2.1 mb 1.7%
Included DLLs 136.0 kb 0.1%
File headers 6.2 mb 5.0%
Complete size 125.5 mb 100.0%
Memory Profiler data:
Total: 216.8 MB Delta: 0 B
Textures: 1364 / 171.9 MB
Meshes: 77 / 113.4 KB
Material: 272 / 49.9 KB
AnimationClips: 165 / 253.9 KB
AudioClips: 324 / 174.6 MB
Assets: 54194
GameObjects in Scene: 10855
Total Objects in Scene: 37039
Total Object Count: 91233
The ACTUAL memory being used: 981,680 KB
So.. what's missing? If it's not the assets, then overhead? Scripts? What else can add to the total memory consumption of the WebPlayer?
A few more notes... I took the scene apart piece by piece and came up with the following numbers:
Audio - 220 $$anonymous$$B Resources - 130 $$anonymous$$B UI - 480 $$anonymous$$B Overhead - 180 $$anonymous$$B
Since the UI is the most like target for optimization:
UI with textures - 630 $$anonymous$$B UI without textures - 390 $$anonymous$$B
So, the UI textures make up about 240 $$anonymous$$B of the memory usage.
Currently, I'm just using Unity's GUI commands and a bunch of single textures. I'm thinking about using NGUI (or some other GUI system) to redo the UI.. but it'll be a major undertaking, and I want to see if there are any other options available first.
Your answer
Follow this Question
Related Questions
reduce size of included dlls? 2 Answers
High memory consumption with empty scene 2 Answers
Unity maximum memory? 1 Answer
Memory management and C# do's and don'ts? 5 Answers
Profiler got 2 Texture2D fields ? 0 Answers