Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Most in-game actions lag after a few players join #1703

Closed
Huntereb opened this issue Jul 15, 2014 · 49 comments
Closed

Most in-game actions lag after a few players join #1703

Huntereb opened this issue Jul 15, 2014 · 49 comments

Comments

@Huntereb
Copy link

Most in-game actions that are sent by players are incredibly laggy after a few players join. Sometimes it can take a matter of minutes for an action to be sent from the client to the server.

Player movements are effected.

@tnpxxsheepdog
Copy link
Contributor

Are you on Linux?

@Huntereb
Copy link
Author

@tnpxxsheepdog This would be Windows.

@meu32ki
Copy link

meu32ki commented Jul 16, 2014

As PM-MP is too high CPU usage, I think.

@Huntereb
Copy link
Author

@Gonbe34 Nah, PM was using about 5-10% of my CPU when this was happening.

@tnytown
Copy link
Contributor

tnytown commented Jul 16, 2014

Yeah, the development build is currently incredibly unstable when it comes to performance.. It used to be worse, though.

@Huntereb
Copy link
Author

I just don't understand why it only affected clients. I was able to use the console itself to send commands, and they went through as normal (No lag). It's as if the clients are refusing to send information to the server. Like they're holding onto the information for a random amount of time, and then releasing it.

That would mean it's a MCPE issue, though. Hopefully that means it will be fixed when we're able to test 0.9.2 on PocketMine.

@iksaku
Copy link
Contributor

iksaku commented Jul 16, 2014

0.9.2 broke multiplayer... it's more buggy that in previous 0.9.x versions, even betas :P

@Huntereb
Copy link
Author

@iksaku Really? Did you test it on a local MCPE server or a PocketMine server?

@iksaku
Copy link
Contributor

iksaku commented Jul 16, 2014

@Huntereb not only me, ask on IRC, some players already updated to 0.9.2 and they also say that everything is worse :/

@Huntereb
Copy link
Author

@iksaku I'm on it right now, I just haven't really tested it. I think I will right now. :P

@tnpxxsheepdog
Copy link
Contributor

Yes I can confirm that 0.9.2 is buggier when it comes to multiplayer...

@Huntereb
Copy link
Author

Is it bad that I can't even join games? My client(s) is just stuck at "Locating server" completely frozen (The little spinny icon to the right doesn't even move). On the server I'm just suspended in mid-air.

This is on iOS and Android, so I guess multiplayer is just screwed for everyone.

@iksaku
Copy link
Contributor

iksaku commented Jul 16, 2014

blame Mojang xD

@Huntereb
Copy link
Author

Another thing to mention is that players constantly get disconnected due to "timeout" (That might be SimpleAuth, though, not quite sure). Remember that this is not a CPU or network issue on my end.

@tnpxxsheepdog
Copy link
Contributor

They are going to have to fix multiplayer. 0.9.4 is already being worked on.

@Huntereb
Copy link
Author

This seems to be a SimpleAuth issue. Disabling "forceSingleSession" in the SimpleAuth configs makes this stop.

@meu32ki
Copy link

meu32ki commented Jul 21, 2014

It's due to PMMP I guess. Not plugins one.

It seems to be happen when PMMP faild sending data of chats or chunks to someone(maybe?).
So it caused all the time if a lot of players (5 or more) are in server.

@Huntereb
Copy link
Author

@Gonbe34 Yeah, it usually occurs when more than 5 players are on.

@Huntereb Huntereb changed the title Chat and other console actions lag after a few players join Chat and other (Remotely triggered) console actions lag after a few players join Jul 21, 2014
@AndreyNazarchuk
Copy link

For me it happens all the time on a hosted server with 4GB of ram

@Huntereb
Copy link
Author

It's kinda been toned down with recent updates, but it still occurs occasionally.

Remember that sending commands from the server itself to the client aren't laggy, but client commands sent to the server are laggy.

@iksaku
Copy link
Contributor

iksaku commented Jul 22, 2014

for me just when I join :P

@meu32ki
Copy link

meu32ki commented Jul 23, 2014

It depends not a RAM but CPU...?
I use i7-3770(3.4GHz 4core)

@Huntereb
Copy link
Author

@Gonbe34 Same exact processor I use.

@AndreyNazarchuk
Copy link

Idk about the CPU, its HostingItAll server
On Jul 22, 2014 9:07 PM, "Gonbe34" notifications@github.com wrote:

It depends not a RAM but CPU...?
I use i7-3770(3.4GHz 4core)


Reply to this email directly or view it on GitHub
#1703 (comment)
.

@PEMapModder
Copy link
Collaborator

Is that a logstream problem instead of an internet problem?

@Huntereb
Copy link
Author

@PEMapModder Well it's not an internet problem I don't think, as I'm still able to send commands to clients immediately. It's just commands sent to the server from the client that are laggy.

@Huntereb Huntereb changed the title Chat and other (Remotely triggered) console actions lag after a few players join Chat and other (Remotely triggered) actions lag after a few players join Aug 18, 2014
@Huntereb
Copy link
Author

Still happening. Is anyone else having this issue, or is it just me?

@shoghicp
Copy link
Member

Could you test 0246648 (latest development build) and give feedback?

@Huntereb
Copy link
Author

Got about 10 people on all at the same time with no issues, so it seems fixed. Thanks for the help!

@shoghicp
Copy link
Member

Thanks for the feedback! I'll wait for more people, since this issue can happen on both directions.

@shoghicp shoghicp added this to the Alpha_1.4 beta4 milestone Aug 18, 2014
@shoghicp shoghicp self-assigned this Aug 18, 2014
@tnpxxsheepdog
Copy link
Contributor

I can CONFIRM that the TPS drops to 1-6 TPS after about 8 players join. Console actions don't seem to be too laggy and when I go in game, it seems to be at 15+ TPS when on console it is showing a very low number.

@Huntereb
Copy link
Author

@tnpxxsheepdog I haven't noticed any lag anymore, maybe a few stutters here and there, but nothing major. Just a lot of client crashing.

...A LOT of crashing.

@shoghicp
Copy link
Member

For now the beta4 will have the partial patch, I'll focus on the TPS issue on the beta5

@Huntereb
Copy link
Author

@shoghicp Awesome, it's way better than nothing. Thanks a bunch!

@tnpxxsheepdog
Copy link
Contributor

@shoghicp Thank you!

@Huntereb Client crashing has been up from what I can tell but nothing too out of control.

@shoghicp
Copy link
Member

Could you test this again on the latest development build?

Please do not spawn items/arrows when testing, so we have clean results

@Huntereb
Copy link
Author

I don't think players can craft arrows yet, so that shouldn't be an issue. But, by spawning, do you mean players dropping them?

@shoghicp
Copy link
Member

@Huntereb yeah, or breaking blocks. That is another issue, so for testing it would be better not mixing multiple issues in one report.

@Huntereb
Copy link
Author

I'll just disable PVP for this test. That'll keep item drops at a minimum.

@Huntereb
Copy link
Author

@shoghicp I don't see any real lag. In fact, it seems smoother than last time.

Maybe that's just because players aren't bobbing up and down out of the ground anymore.

@Huntereb
Copy link
Author

@shoghicp I re-enabled PVP (Therefore more player item drops) and players seem to move at a very low tick rate. It kinda looks like how it did back when Simpleauth reading the massive text file would cause the server to lock up all the time.

@shoghicp
Copy link
Member

@tnpxxsheepdog could you test this too?

@tnpxxsheepdog
Copy link
Contributor

@shoghicp Sorry for the late reply, the TPS still seems to be low in console.

Here is an example: Console TPS will say 2.8 The actual TPS in game would probably be around 14.5 There is some lag but definitely not to where it is at 2.8 TPS

I have notcied the lag has become a tad bit worse before the beta5. Now that B5 is here, give me some time to test

@shoghicp
Copy link
Member

@tnpxxsheepdog As I said, chunk ticking was enabled again. you can disable it using pocketmine.yml (does anyone read the release notes on github?)

@tnpxxsheepdog
Copy link
Contributor

@shoghicp The TPS drop was increasing right up to Beta5. So far Beta5 has made the TPS rise a bit more, still need some time to test. Chunk ticking is even enabled on my servers, so far so good, no noticeable lag!!! Yes, I read the release notes, I stalk them :)

@shoghicp shoghicp modified the milestones: Alpha_1.4 beta5, Alpha_1.4 Aug 28, 2014
@shoghicp shoghicp closed this as completed Sep 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants