Search Unity

Bad performance(fps) after upgrading to Unity 5

Discussion in 'Editor & General Support' started by Simon_says, Apr 22, 2015.

  1. Simon_says

    Simon_says

    Joined:
    Oct 19, 2013
    Posts:
    141
    I have a very serious performance issue in Unity 5. The frame rate is much lower than in Unity 4.x. It's considered about not just 1 project, but each project I have, even new created ones. I'll simply illustrate everything.

    Here's an empty Unity 5 scene: 1.png and with opened profiler: 2.png and with opened frame debugger: 3.png
    As you can see there's 300 fps(which is very bad considering there's a high-end gpu in the PC), and with opened profiler fps is much higher, and with frame debugger frame rate is perfectly normal as it's in Unity 4. This is not just a problem in the editor, it's the same issue in the build as well.

    Here's the same project in Unity 4 on the same machine: 4.png and here Gfx.Waitforpresent is not causing lags: 5.png

    Here's tests from another machine, which is much stronger than the previous one:
    empty scene: https://i.imgur.com/EU7SjhK.png and with profiler: https://i.imgur.com/PlP5OYF.png
    As you can see here's not much of a difference(considering both is high fps), but still with profiler opened there's 2000 frames more. This is a video which can give a bit better illustration of the problem:

    Keep in mind that this fps in stats is different than real fps in game, and this lag spikes causing constant low fps in game.

    https://i.imgur.com/18i2UVf.png When the scene is live and this spike always in center in profiler, it just changes a bit +- and in status there's 13000 fps and it drops for 1 second to 5000 because of this spike each interval of few seconds.

    Looks like Unity 5 conflicting with hardware somehow, but hard to tell from my side as I don't have any valid proof of that, but this. The first machine has a nvidia card, and the second one has ati radeon. How can it be that when you open profiler fps is getting better? But seriously much better? Also if it was just an editor thing, why is fps low in builds too?

    In Unity 5 I have 50 fps when I had 700-1000 with Unity 4. If I will compile some game in Unity 4 I am sure that I will have 1000 fps without any problems cause in build vsync will be turned off cause of video driver so Gfx.WaitForPresent is actual PROBLEM(seems like).
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    This isn't an issue. What you're seeing is mostly editor stuff. Try an actual game.