Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sharsnik · Jun 29, 2013 at 09:20 PM · webplayeroptimizationmemory

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sharsnik · Jun 30, 2013 at 12:12 AM 0
Share

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.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges