So I was following the Junior Programmer pathway when in Unit 5 - User Interface when I try to open Play Mode It was working fine but I would get these sudden lag spikes with 15 to 8 fps, I Checked profiler what was the problem but everything is fine I changed the settings to play mode in profiler But there’s no problem with it.
If you are using a low-end computer, maybe it is some other programs running in background that are causing these lag spikes. If this doesn’t work, I guess you should take a look at your code.