How do I reduce ping for Peer drag n drop?

0 favourites
  • 2 posts
From the Asset Store
High quality sound effect pack, in the following categories: hand, net slide, racket, table, table slide.
  • When peer is draging a sprite with mouse and sending the message to host to move it, the sprite cant keep up with the mouse movment, if i move the mouse a lil bit fast, it lose the ˆmouse over˜ and stop moving.

    How can i reduce this latency when peer is moving a object?

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Option A. Don't even use the mouse over condition on the peer end. Let the host decide if the mouse was over the object or not.

    Option B. Don't worry about keeping drag and drop host authoritative and synced. Basically favor local input prediction and responsiveness over host authority, and have the host and other peers catch up to the current peer location instead.

    There is no way to remove latency in the real world. You just have to design around it, weather you decide to favor host authority or local authority is up to you. Designing netcode is all about how to best hide the latency from each party involved while preventing inconsistencies and conflicts.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)