Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Performance issues while modifying mesh

Discussion in 'Windows' started by vaclav_b, Mar 3, 2015.

  1. vaclav_b

    vaclav_b

    Joined:
    Jun 7, 2013
    Posts:
    16
    I've been porting our game to Windows 8 (Windows Store with Phone 8.1 SDK) and I'm having some performance issues. We have some animations that scale meshes, as well as we have font on game-play screen where elapsed time of the game-play is being displayed.

    Other than mesh modification, those two things have nothing else in common.

    Disabling the animations and the font modification allows the game to run at 45-60 frames. This is pretty strange in itself that it's spiking by so much, because same things are rendered during those spikes, but I'm still investigating what the issue is there.

    When we start changing font (we use font component from ex2d plugin, but I confirmed it being the same with unity's built in TextMesh) the fps drops instantly by around 15 to 20 fps.

    With animations enabled (those are animation imported from 3ds max and maya and being run with legacy unity animation system, with play on awake flag set to true, so no code is controlling them) it's dipping below 10 fps.

    The device I am testing it on is nokia lumia 830. The same scene runs with steady 30 fps or more on ipod 4, so I doubt the device is too slow (with all the animations enabled).

    Is there some known issues with mesh modification on Windows 8.1? Or maybe I'm missing something else? Any help would be greatly appreciated.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    So, just to be sure, you're running Master configuration, right?
     
  3. vaclav_b

    vaclav_b

    Joined:
    Jun 7, 2013
    Posts:
    16
    Just double checked. The issue appears to be the same on both release and master.
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    You could try using Unity's profiler, or Visual Studio profiler to examine the problem.

    Or submit a bug with small repro project.
     
  5. vaclav_b

    vaclav_b

    Joined:
    Jun 7, 2013
    Posts:
    16
    Yeah, I used Unity's profiler to get to the point I am at, but can't really go any further than animation scaling mesh is causing the problem.

    I will make a version of the project that shows the issue and submit a bug report and post it once I'm done.

    Thank you for your quick response Tomas.
     
  6. vaclav_b

    vaclav_b

    Joined:
    Jun 7, 2013
    Posts:
    16
    I got time to prepare a version of my project that presents the issue.

    I submited a bug report and attached the project to it. You can find it here:
    [mod edited]

    There's also a description of how to build it and observe the issue.
     
    Last edited by a moderator: Mar 6, 2015
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Never post full link to bug like this, because others might be able to access sensitive information, it's enough to print Case number, in this case - 678011
     
  8. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Uh Tomas, that still had a link (I edited it off though) - have to use the break link icon as editing the text will still hyperlink ;)
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Whoops, thanks :)
     
  10. vaclav_b

    vaclav_b

    Joined:
    Jun 7, 2013
    Posts:
    16
    Ops, sorry. Wasn't aware of that (didn't see anything that could be harmful in the link).