Search Unity

Dont understand the profiler figures.

Discussion in 'Editor & General Support' started by tawdry, Nov 29, 2015.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    In this scene i have one 2048 diffuse texture on the ground and that,s all.It has a compressed size of 2.7mb so why is the profiler saying 1k+textures and 40+mb?not to mentions the mesh and materials claimed. profiler.png
     
    Last edited: Nov 29, 2015
  2. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Here is another completely new project did not import any packages totally blank scene.There is absolutely nothing in this scene huh.png
     
  3. greg-harding

    greg-harding

    Joined:
    Apr 11, 2013
    Posts:
    524
    Using the profiler while running the game in the Editor also shows the assets used by the Editor. Yes, it's slightly confusing. Attach the profiler to a build of your project to get more accurate information (http://docs.unity3d.com/Manual/Profiler.html).
     
    superpig likes this.
  4. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    What @greg harding said - you should profile an actual build of your game to get more accurate figures.

    If you want, you can change the Memory profiler to 'Detailed' mode (hit the dropdown just above the figures that currently says 'Simple') and take a snapshot, and then you can look through the actual textures that are loaded.
     
  5. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Ok thx for the replies difficult to test the effects of texture size compression ratio;s etc with the profiler been all over the place.I remeber where i could read all the info from a build in a text file but I don't see where to do that anymore.
     
  6. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Ran a blank build with only a plane and 1 texture along with directlight and main camera and tells me 18 textures in scene. The amount of texture size 5mb is right but why 18 textures?
     
  7. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    It's going to include things like the default halo/spotlight cookie textures set in your render settings, the font textures used for the 'Development Build' watermark, and so on. The Memory Profiler's 'Detailed' mode will give you more info.

    If build size is what you're trying to work on, there's a report in the Editor log file whenever you do a build which gives you some rudimentary info.
     
  8. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Main concern is memory. Build size not an issue. When i run main scene in profiler says 0.91 gb mem but in build its half that . This is a major headache for me as i am well within my memory cost in the final build but i crash in the editor due to it using double the memory . Found a workaround drop the overall textures/8 in editor but some crazy results. In the editor i am using 470mb memory now so down from 0.91 at least but the build is only 18mb textures. Why this massive difference what is using up all this memory?I disabled static and it changed nothing.
     
    Last edited: Nov 30, 2015
  9. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Its a bit insane that when i do th /8 editor option my final build ends up with 18mb textures but the editor has it at 480?.Really hope the editor gets some heavy optimization at some point.
     
  10. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    So the editor is doubling the textures for some reason?And even when the preferences texture quality value is changed the orinal texture size is maintained with the duplicate textures been reduced alone.This is a huge problem fior me working in win 32 anyway i can get the editor to not run double the textures?.I can't reduce the actual texture quality because then there is no way to have the original quality in build . If there was a x2,4,8 option in the quality section instead of just a /2,,4,8 that would really help out in this situation.
     
  11. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    I'm afraid there's no easy way to do what you're asking for, nor do we have any plans to add it - in fact we're looking to drop 32bit support for the Editor as soon as is practical for us. I recommend moving to a 64bit machine ASAP if your project is getting big enough that it's a problem.

    If you really really need it, one thing I've done on past projects is to check everything into source control, and then resize all the textures down to small sizes, and then be very careful to not commit their .meta files, and revert them when I want to do a build.
     
  12. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    in fact we're looking to drop 32bit support for the Editor as soon as is practical for us.NOOOO!!!
    Switching to 64 bit is not a financial reality for me right now but I will find away to work around the editors memory hogs i will need to sacrifice some variety and a bit of quality no doubt to do it .
     
  13. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    Sorry to be the bearer of bad news. It's probably going to be another couple of versions before we actually do it, but look at the bottom graph - it's already below 10% and it's trending further downwards, so it really is just a matter of time now...
     
  14. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Well the fact unity supports win 32 and unreal doesn't is something i would think would be worth keeping. Those figures don't exactly reflect the consumer where win 32 is probably still the dominate os. And I very much doubt that many developers are only targetting the 64 bit market.
    It's probably going to be another couple of versions before we actually do it

    By a couple versions you mean Unity 6 +Unity 7:D.
    Or do you mean unity 5.3 unity 5.3.a etc :(

    Personally I would keep support for win 32 never hurts to offer something your main competition does not but I am biased here.
     
  15. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    Oh, we're not planning to drop support for 32bit players. You'll still be able to publish games that run on 32bit systems. All we're thinking of doing is dropping support for the 32bit Editor, so you'd be authoring your 32bit games from a 64bit machine. We actually already did this on OSX a while ago...

    As for when it'll happen, I don't know - it's easier to think in terms of time than in terms of version numbers. Suffice to say you're definitely safe for another three months at least.
     
  16. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Not going to be able to push this baby out in 3 months need at least 9:p. My point is that removing access to unity from the 32 bit user would hurt the casual or hobbyist developer who might go on to become something more than that given the tools and opportunity. I suppose the unity versions that do support 32 bit will not be reverse upgraded to only work on a 64 bit machine?.Well serious developers probably are all running 64 bit. Anyone looking to get there toes wet etc are more likely on a 32 bit machine and they are not going to upgrade to 64 bit just to test unity out so a potential diamond could slip through the cracks.

    Ps. I think you guys should seriously look at changing your pricing model unreal's taking a percentage seems like a much better way to earn a sustainable influx of cash for unity I know I would not begrudge unity a share of whatever profits my game might make. After all Unity is doing a huge amount of the heavy lifting only fair to get a piece of the pie if you provide many of the ingredients.
     
  17. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    No, for sure, any version of Unity that works on 32bit today will continue to be available. You'd certainly be able to stay on something like 5.3, and probably some later versions as well, for as long as you like - you'd just miss out on new fixes and features.

    Well, it's not just "serious developers" - like you saw in the graph I linked, more than 90% of people using Unity on Windows are running 64bit systems already. I don't think there are actually enough "serious developers" in the world to make up 90% of our user figures :)

    We've got a pretty sustainable influx of cash already, thanks ;) but if you want to pay us money after your game is out, we'd prefer that it be for us actually giving you a continued service, and helping to take your game and your business to whole new levels of success.
     
  18. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    That been said any reason why unity has not dipped its toes into the steam,gog etc arena. Paying sites like steam 30 percent of profit for almost doing nothing but hosting is a bit of a ripoff. I would be more amenable to unity taking a cut that size and hosting my game. I mean the size of the asset store must be massive so why not take it a step further and offer a hosting site for unity games that the public can peruse and buy from.

    Curious any examples of unity helping to take games and businesses to a whole new level other than providing the tools via the editor.