ECS problem in build

Hello.

I have created a game in pure ECS. The performance is great(FPS: 36-42) in Editor. But when I build this on windows as target. the FPS drops dramatically(FPS: 12). Can anyone help me to fix this problem? I am using 2018.2.

Regards!

(in Editor)
5055578--496184--upload_2019-10-11_19-59-52.png

(in build)
5055578--496190--upload_2019-10-11_20-4-28.png

I have finished 70% of the work. Now, I want to make a trailer for that. But the FPS is so slow in build that I cant capture a smooth video.:(:frowning:

This problem is very fatal to me. Can any one give me some threads?

5055962--496310--upload_2019-10-11_9-42-52.png

2 Likes

Well, based on the performance numbers, performance is not “great” in the editor, either. 36-42 FPS is not a great framerate, unless your computer is very low spec. And if your computer is so low spec that it only manages 36-42 FPS in editor, then it may be a computer related problem causing really low performance in the build as well. For games I develop, I target 150-300 FPS on a modern gaming PC.

There are three main things that contribute to framerate performance:

  1. Computer hardware specs
  2. Complexity of game
  3. Optimizations in game

One thing I would recommend in general is using the latest 2018.4 instead of 2018.2. There are lots of bug fixes and some of those may affect your situation. 2018.4 is the LTS build (long term stable), so that is what most people on the 2018 version will be using. So before you spend a lot of time chasing a performance problem, backup your project and upgrade to 2018.4.

2 Likes

You may be running with different quality or resolution settings in your build vs in the editor. Curious how you’ve gotten 70% done with your game but this is apparently the first time you’ve tried a build. Whenever you test anything performance related it should always be with a build, since editor performance boarders on meaningless.

Use the profiler connected to a build to see what is actually the issue though.

2 Likes

Thanks for your replies!!

Eventually, this problem is because of the [BurstCompile] version. My BurstCompile version is so old that it can’t be compiled into the Build. So I should better to update it.

Regards.

I have fixed this problem, I updated my Burst and ECS version.