Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-09-19 19:45:59

Nou
Member
Joined: 2015-02-24
Posts: 2,762

PlayerIO lag in Unity client

The Unity client is experiencing some great lag, seemingly coming from PlayerIO's side. We can't really see anything that would be a problem on our end. We've contacted them but to no avail (yet). We've sent them some code and while we wait for PlayerIO to fix the lag on their end, if anyone wants to have a look at the code and see if we can fix anything, always welcome!

https://github.com/Tunous/UnityResponsivenessDemo


No u.

Offline

Wooted by:

#2 2016-09-19 20:06:40, last edited by Zumza (2016-09-19 20:08:44)

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: PlayerIO lag in Unity client

I don't quite understand. Is this lag influenced in any way because the use of Unity Client over Flash?

Edit:
I also noticed that the commit is 20 days old. I guess you contacted PlayerIO on this issue in about the same moment.


Everybody edits, but some edit more than others

Offline

#3 2016-09-19 20:12:35

Nou
Member
Joined: 2015-02-24
Posts: 2,762

Re: PlayerIO lag in Unity client

Zumza wrote:

I don't quite understand. Is this lag influenced in any way because the use of Unity Client over Flash?

Edit:
I also noticed that the commit is 20 days old. I guess you contacted PlayerIO on this issue in about the same moment.

Yes, the Unity client lags while Flash does not.

It has been quite a while since when I first contacted them indeed.


No u.

Offline

#4 2016-09-19 20:15:52

MartenM
Member
From: The Netherlands
Joined: 2016-03-31
Posts: 978
Website

Re: PlayerIO lag in Unity client

Flash: Bad engine.
Unity: Bad support from playerIO.

Sometimes live is just cruel.


lm3hgg8.jpg

Ingame: marten22        My steam: MartenM

Offline

Wooted by:

#5 2016-09-19 20:30:50, last edited by Zumza (2016-09-19 20:34:42)

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: PlayerIO lag in Unity client

Ill test tomorrow, but from what I have seen I think SendMessages method is the cause.

WaitForSeconds(0.001f)

Presumptively the connection doesn't have enough time to breath.
I just don't think somebody has to send data every 1 milliseconds... You may know better since I guess you can track this statistic using current EE code.
Also I think PlayerIO was made to handle better multiple requests from multiple connections than to one only.


Everybody edits, but some edit more than others

Offline

#6 2016-09-19 20:40:06, last edited by hummerz5 (2016-09-19 21:13:19)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: PlayerIO lag in Unity client

I don't know anything about unity, but this documentation line sounds like something I would screw up, go back and read, and realize I missed some annoying special-case jargon.

- WaitForSeconds will allow the coroutine to resume on the first frame after 't' seconds has passed, not exactly after 't' seconds has passed.

So... is the frame working? idk, but it looks like the WaitForSeconds might not do what you want it to do.

But, at the same time, the issue is purportedly not specific to this implementation of the demo, zumza. If the Unity client connects to the same server that the flash client connects to... same room, all that, and its only the client that lags, then it is probably some token issue in the EE Unity code (or the PlayerIO unity). So arguably the WaitForSeconds isn't the issue unless it is improperly used in both projects. (?)

edit: on that thought, truly pausing for 1ms using this function and waiting for the frame to fire means that you're expecting every frame to fire off at >= 1000 frames per second. I think.

edit2: unless they let the timers elapse on top of themselves

Offline

Wooted by:

#7 2016-09-19 21:19:41

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: PlayerIO lag in Unity client

Oh, I thought that the demo is generally slower than the EE Flash client.
If you have the same implementation on Flash side, perhaps would be useful to post on github as well.

Anyways our discussion are kind of futile unless we do real tests. Im so sad I cant until tomorrow ;(


Everybody edits, but some edit more than others

Offline

#8 2016-09-19 21:32:26

Thanel
Member
Joined: 2015-02-18
Posts: 713

Re: PlayerIO lag in Unity client

Client side code simulates heavy communication in room by sending "ping" message every 1ms. Note that it doesn't matter from where these messages are sent. If they were sent from separate client we still would be getting same responsiveness problems as here.

This WaitForSeconds thing was only made for the purpose of demonstrating the issue in as minimal project as possible. From my analysis the issue is somewhere within the messages processing part of the Unity PlayerIO library and this demo shows it by simulating messages sent by players playing the world. You could reproduce the issue by removing that part and sending messages from outside of the client code.

If you run it you can watch how each next message gets higher and higher delay to be returned.

Offline

Wooted by: (3)

#9 2016-09-19 21:48:27

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: PlayerIO lag in Unity client

My first instinct was to blame the Unity PlayerIO library too. //forums.everybodyedits.com/img/smilies/smile
But IIRC while PlayerIO was under Yahoo they were showing off with 3D games made in Unity.


Everybody edits, but some edit more than others

Offline

#10 2016-10-01 08:53:51

Myst
Guest

Re: PlayerIO lag in Unity client

one of my friends sended me this.
D36AB68.png

#11 2016-10-01 09:03:52

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: PlayerIO lag in Unity client

GermanPower68 wrote:

one of my friends sended me this.
http://img.imgland.net/D36AB68.png

It won't hurt me. I would rather play in a client than in a webbrowser.

Offline

#12 2016-10-01 19:54:08

Joshua708
Member
From: everybodyedits.com
Joined: 2015-03-04
Posts: 153

Re: PlayerIO lag in Unity client

capasha wrote:
GermanPower68 wrote:

one of my friends sended me this.
http://img.imgland.net/D36AB68.png

It won't hurt me. I would rather play in a client than in a webbrowser.

Yeah. Even the minimal EE website tends to struggle on chrome, so a client will be a lot better.
Anyway chrome is probably #1 browser if nothing uses flash because it's ultra fast with HTML5 and junk.


Hey look a bunch of stats about me
browser-chrome-blue.svg visual%20studio-community%202017-7D3BC4.svg windows-10-brightgreen.svg download-70%20mbps-blue.svg upload-10%20mbps-blue.svg

ram-16%20gb-green.svg Processor-Intel%20i5--5200U-green.svg Graphics-Intel%20HD%20Graphics%205500-green.svg



kyK5VkB.png

Offline

#13 2016-10-01 21:21:32

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: PlayerIO lag in Unity client

GermanPower68 wrote:

one of my friends sended me this.
http://img.imgland.net/D36AB68.png

but the thing is that it won't run in unity web client, it will run in something else //forums.everybodyedits.com/img/smilies/smile Plus unity client still exists sooooo
(and if its only firefox it wont cause much harm)


http://i.imgur.com/bjvgH5L.png?1

Offline

#14 2016-10-01 22:22:25

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,575

Re: PlayerIO lag in Unity client

marcoantonimsantos wrote:
GermanPower68 wrote:

one of my friends sended me this.
http://img.imgland.net/D36AB68.png

but the thing is that it won't run in unity web client, it will run in something else //forums.everybodyedits.com/img/smilies/smile Plus unity client still exists sooooo
(and if its only firefox it wont cause much harm)

Not only firefox. Firefox is dropping support in the future, chrome's support has been dropped for a while, and IE/edge I'm pretty sure never had support to begin with.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#15 2016-10-01 23:44:32

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: PlayerIO lag in Unity client

Different55 wrote:

Not only firefox. Firefox is dropping support in the future, chrome's support has been dropped for a while, and IE/edge I'm pretty sure never had support to begin with.

IE, FF, Safari and Opera have support (https://unity3d.com/webplayer)

Offline

#16 2016-10-02 10:29:30

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: PlayerIO lag in Unity client

Not even a replay from them on this issue, Nou? //forums.everybodyedits.com/img/smilies/sad


Everybody edits, but some edit more than others

Offline

#17 2016-10-03 21:12:54

Nou
Member
Joined: 2015-02-24
Posts: 2,762

Re: PlayerIO lag in Unity client

Got a reply, see here: http://forums.everybodyedits.com/viewtopic.php?id=36677

Topic closed now //forums.everybodyedits.com/img/smilies/smile


No u.

Offline

Nou1475525574627599

Board footer

Powered by FluxBB

[ Started around 1732731693.2891 - Generated in 0.097 seconds, 12 queries executed - Memory usage: 1.67 MiB (Peak: 1.9 MiB) ]