Lag spikes after upgrading to Unity 5

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
brockemon
Posts: 59
Joined: 25 Jan 2012, 17:20

Lag spikes after upgrading to Unity 5

Post by brockemon »

Hi all,

Project was running fine before upgrading to Unity 5, 60fps consistently.

After upgrade I seem to get lag spikes every 1 second or so under the call Loading.LoadFileHeaders (see attached screenshot from the profiler). Has anyone else also encountered this? I just assumed it was Smartfox causing this as it is in the Smartfox part of the hierarchy and another project I tested that doesn't use Smartfox didn't have lag spikes.

Regards
Brockemon
Attachments
UnityGoingSlowWithSmartfox.png
(237.68 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Lag spikes after upgrading to Unity 5

Post by Lapo »

Hi,
I have no idea what Loading.LoadFileHeaders is...
Isn't it part of your code? What does it do?

Of all the calls below the SFSManager node I am not able to recognize anything familiar from the SFS API.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
brockemon
Posts: 59
Joined: 25 Jan 2012, 17:20

Re: Lag spikes after upgrading to Unity 5

Post by brockemon »

Yes,

I also posted on the Unity forums under the Android section. Seems other people are having issues as well.

I think it might just be a coincidence that the performance hit is on an object that is associated with Smartfox. It might be due to the fact that the GameObject is set to Don't Destroy On Load or something like that.

Just wanted to see if anyone was having similar issues.

-Brock
brockemon
Posts: 59
Joined: 25 Jan 2012, 17:20

Re: Lag spikes after upgrading to Unity 5

Post by brockemon »

On a separate note our online game www.stickempires.com has enjoyed over 3 millions users over the past 2.5 years and uses Smartfox. Thanks for the awesome product.
Post Reply