problems with BlueBox and the Unity API

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

Moderators: Lapo, Bax

unitologist
Posts: 13
Joined: 04 Jan 2012, 23:13

problems with BlueBox and the Unity API

Postby unitologist » 14 Jun 2012, 20:41

So I'm using some of the FPS tutorial code and trying it with Bluebox. Something about sending transform updates bogs down Unity heavily.
After spending some time in the unity profiler it looks like the something in the client API uses tons of CPU time when switching to BlueBox.
Sending an ExtensionRequest without bluebox: 2% CPU
Sending an ExtensionRequest WITH bluebox: 98% CPU

Is there any way I can fix that?
unitologist
Posts: 13
Joined: 04 Jan 2012, 23:13

Re: problems with BlueBox and the Unity API

Postby unitologist » 15 Jun 2012, 22:22

anyone alive in here?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: problems with BlueBox and the Unity API

Postby ThomasLund » 19 Jun 2012, 09:09

Yep - definitely alive.

Are you sending transforms ever 30 ms via bluebox/http? Without any further optimizations, that will definitely go wrong performance wise. Bluebox is not a high performance real time solution, but a backup for people behind firewalls that do not allow the binary protocol.

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
unitologist
Posts: 13
Joined: 04 Jan 2012, 23:13

Re: problems with BlueBox and the Unity API

Postby unitologist » 19 Jun 2012, 16:07

I played with the rate even setting it to half a second but it would still produce big spikes in the profiler and cause stutter.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: problems with BlueBox and the Unity API

Postby ThomasLund » 03 Jul 2012, 09:54

Yes - its basically simulating a webbrowser inside the API and calling a webserver in the other end. This is not!! high performance and any kind of realtime game should really not use this approach. It simply wont be fast enough for what you need.

/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
unitologist
Posts: 13
Joined: 04 Jan 2012, 23:13

Re: problems with BlueBox and the Unity API

Postby unitologist » 03 Jul 2012, 18:25

This isn't a first person shooter but it's not turned based either. It's more of a virtual world type deal. I'm fine with the slower rate and some lag I just don't want the stutter. It seems like there is more overhead encoding for bluebox? Is there anything else I can do to tune this? I also get a lot of dropped connections.

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 2 guests