Simple game lags while in editor but runs fine when build
I'm making a simple 2d game, a roguelike, turn based, so far there isn't much going on, only a player object, a random dungeon generator (that builds a small and simples 8x8tile room), and some enemies that work with a very basic random walk AI The game was lagging alot when I tested it in the editor, and the profiler showed some problems with Instantiate.Awake, GFX.WaitForPresent and EarlyUpdate, even after a google seached and some settings changed, the game kept laggin in the editor so I build it to see if the problem would continue, but it worked fine, no lags, it ran smoothly Anybody can help me? please
Answer by Matt-Face · Dec 30, 2017 at 12:24 AM
are you debug logging? the string operations used in debug.log can be deceptively resource hungry. also i'd suggest you try to use the profiler to identify the specific problem.
Your answer
Follow this Question
Related Questions
NullReferenceError in Build but not the Editor,NullReferenceException in Build but not Editor. 0 Answers
What BuildTargetGroup option is the right for a linux build? 1 Answer
The variables modified in the inspector are not kept on build 0 Answers
2D game lagging 1 Answer
Extremely Low FPS in Editor, smooth in Build. how to fix? 3 Answers