Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow connections start player inside of blocks, too low #50

Open
satoshinm opened this issue May 2, 2017 · 1 comment
Open

Slow connections start player inside of blocks, too low #50

satoshinm opened this issue May 2, 2017 · 1 comment
Labels

Comments

@satoshinm
Copy link
Owner

On the test server http://netcraft.herokuapp.com/, often the player starts beneath the top of the world, a couple blocks (4-5?), it seems to be related to having a slow connection (don't see this usually when testing locally) - maybe a race condition?

Thought I fixed this in #40 by ad983a5 but its cropping up again on the test server in production. Reported at https://forums.glowstone.net/topic/56/websandboxmc-web-based-client-providing-an-interactive-glimpse-of-a-part-of-your-server-using-webgl-html5/8

screen shot 2017-05-01 at 9 28 49 pm
screen shot 2017-05-01 at 9 28 45 pm

@satoshinm
Copy link
Owner Author

satoshinm commented May 18, 2017

Maybe a symptom of satoshinm/NetCraft#107 WebGL warnings and errors in online mode only? The main loop was running too early. But the fix there only omitted rendering chunks too early, if !g->initialized.

Should handle_movement(dt) also not be called until initialized? Will this fix it, or is the problem deeper, a symptom of sending lots of block updates (B, commands) followed by a player position (P, command) right at the end, and the client takes a while to update all the blocks? Also consider satoshinm/NetCraft#136 Compact chunk updates.

Testing locally with NetCraft build 354 craft.html#netcraft.herokuapp.com%2080 I haven't seen this yet. I start above the top of the tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant