In the editor my game runs perfect and the profiler even checks out great. When I build the game however, either windows or webgl runs extremely slow and almost seems broken. I run unity 2020.1 any thoughts?
The frame rate is fine, but what I notice is everything feels delayed with controls, but also movement. I also have certain scripts that just break on build, but work perfect in editor. The only thing I can think is my code is the issue so I will probably just create a new project and see what I can restore while building to see if anything specific is the issue. Thanks for the suggestion.
Hey everyone Thanks for the ideas. I found the issue which is where some scripts depended on other scripts references during the same frame so in the editor it happened to execute the code in the intended order while the built version it did not. I reworked the code and put the dependent code on late update and this fixed most of my issues :) Now I just think its the delay for the webgl build and I compensated by moving the player faster. Thanks a lot for the tips!