Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3596232
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:57:41+00:00 2026-05-18T19:57:41+00:00

I want my game to be entirely server side. Meaning, the client only sends

  • 0

I want my game to be entirely server side. Meaning, the client only sends their keystrokes. They then are given updates of the changed objects’ positions from the server. The client then renders everything each frame.

This is a 2D game

I was thinking of something like this:
calculate the inbetween frame using Box2D, and do not try to predict where the server is in fact going to be.

ServerPos -> ClientPos -> ServerPos -> …

If by a certain time we have not gotten a packet (dropped or something) then we just simulate the next frame on client. The idea is to avoid the server always correcting our position. We want the client to fill the inbetweens but not try to predict where the server is going to be.

We want to avoid at all costs moving the player in the opposite direction because the client over simulated, so we could multiply the resultant vector by a scalar like 0.98 which would mean the client would be slightly slower than the server and would help ensure a smooth transition to the server position.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:57:41+00:00Added an answer on May 18, 2026 at 7:57 pm

    Just a thought, but I think you might be forgetting network latency.

    Assuming you’re really sending the data 60 times per second in response to something the client sends. Than your maximum latency can be 1 second / 60 = 17ms. That will be a problem for just about any internet connection since your application is bound to introduce some latency aswell. So… if you want something like this to work, you’ll have to have a little buffer window to catch this delay. And that will make it feel less responsive.

    There’s a reason that most online games have some prediction algorithms in place just in case the connection drops/stalls a bit.

    I think the idea is nice, but in practice it probably won’t work that well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want my game to be entirely server side. Meaning, the client only sends
I'm developing a game. I want to have game entities each have their own
I am developing an iPhone game with Cocos2d-iphone. I want my game to only
I want (in my game) to have a mode where two people can be
Im creating a game an want to be able to add there score so
I am making a game and want to talk to all the clients at
I have a Cocos2D game I want to install on my devices with Testflight.
I am doing game for iphone.In that I want to store game data such
I have a web app game and while in the game I want to
I want to develop a game in NodeJS but i'm not sure how much

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.