- Home /
Performance problem after build
Hello, I made a simple 2D game and it works good until I build it. In editor the game runs without any problems but when I start the .exe i've build my CPU load reaches 100% and I see a lot of lags. I've build it for Windows with x86_64 and x86 and in both builds have this issue. Any idea why the build is extremely more laggy than in the editor and how I can fix it? Thanks!
Not without seeing code. Do you have a lot of Debug.Log calls? Your best bet is to make a developer build an attach the profiler. You can then see what is taking up all your CPU runtime.
I don't have any Debug.Log calls, I don't use external resources, I don't use the internet, I don't use any 3rd party dlls or asset store items. Should I give you my project or the scripts only and should i screenshot the profiler or share the exported data?
$$anonymous$$ake a dev build. Look in the profiler and logs. It could be there are numerous errors being thrown in the build.
Your answer
![](https://koobas.hobune.stream/wayback/20220612212440im_/https://answers.unity.com/themes/thub/images/avi.jpg)