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

Switchting to interpolate from extrapolate breaks the game #2

Open
elr0berto opened this issue Oct 21, 2017 · 1 comment
Open

Switchting to interpolate from extrapolate breaks the game #2

elr0berto opened this issue Oct 21, 2017 · 1 comment

Comments

@elr0berto
Copy link

First of all, Thanks for the awesome idea of a javascript network engine that supports different stragies for handling network gaming with latency etc!!!

Steps to reproduce:

You can skip steps 3-6 if you want.. But it's just to see that the game worked before changing line 22 in

  1. clone the git repo
  2. npm install
  3. npm run build
  4. npm run start
  5. go to localhost:3000 .. game runs fine at this point!
  6. stop the server
  7. change line 22 src/client/clientEntryPoint.js:22 to: sync: qsOptions.sync || 'interpolate',
  8. npm run build
  9. npm run start
  10. go to localhost:3000 ... arena is gone??.. car is there.. ball is there... It also seems like car cant be controlled....

I was expecting the game to still work but behave differently with high latency...
The default settings seems to not work well under high latency... meaning when i turn the car theres a significant delay turning the car.. I want the car to respond immediately despite high latency..

I also tried to upgrade lance to 1.0.10.. same problem!

No errors in console that i can see.

Looking forward to your response :)

@namel
Copy link
Member

namel commented Oct 23, 2017

Hi, Thank you for finding this!

There have been some significant changes in lance-V2 for sprocketleague, and V2 should come out soon. Of course sprocketleague has to work in interpolate mode, so I will leave this issue open until V2 comes out and revisit at that time.

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

No branches or pull requests

2 participants