Search Unity

My performance in my standalone build is about half of the in-editor performance - what to check?

Discussion in 'Entity Component System' started by PeterJK, Dec 13, 2018.

  1. PeterJK

    PeterJK

    Joined:
    Dec 2, 2012
    Posts:
    35
    Hey all,

    I have some ECS/Job system code that I'm experimenting with. There is nothing being rendered, it's 'pure' cpu computation.

    When I run in-editor, I get about 50 or so frames per second.

    When I make a standalone windows build, the program runs at circa 20 frames per second.

    I'm sort of scratching my head - are there any obvious pitfalls I should check for? This is on 2018.3.0b8, entities version 0.0.12-preview.19.

    Thanks for any help!
     
  2. PeterJK

    PeterJK

    Joined:
    Dec 2, 2012
    Posts:
    35
    Oooh... I think I solved it. Sorry!

    It's a gotcha that might be useful for others to know about:

    Basically I had a system with a burst compile error in it. The build succeeded, but the burst compiler complained about this system in the process. It was an 'unused' system that was doing nothing - I was just returning from it. But it was still in the project in case I came back to it.

    The error later on in the system doesn't seem to bother the editor, but for the standalone build, it seems to have this drastic effect on performance. Removing the offending system sees standalone performance at a solid 60fps.
     
    Gametyme likes this.