[odamex-bug-reporter] [Bug 751] New: Interpolation for other players

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Tue, 30 Aug 2011 21:22:58 +0000

http://odamex.net/bugs/show_bug.cgi?id=751

             Bug #: 751
           Summary: Interpolation for other players
    Classification: Unclassified
           Product: Odamex
           Version: 0.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Client
        AssignedTo: odamex-bug-reporter@xxxxxxxxxxxxx
        ReportedBy: elykdav@xxxxxxxxx


Created attachment 313
  --> http://odamex.net/bugs/attachment.cgi?id=313
interpolation test 1

This is a patch that adds client-side interpolation to other players, replacing
the current prediction that was in place.

It works by delaying all player's positions by 1 update (which happens about
every other tic). Then, every tic, it gradually moves the player to the latest
received position. When a new update is received, the player is moved to the
earlier position, and the process repeats.

The primary result of this is that other players look a whole lot smoother than
they used to, without using any extra bandwidth. On the other hand, this adds
latency to the game, since you're seeing player positions about 2 or 3 tics
older than you would otherwise (so this is around 60 to 90ms added onto ping).
I have not added any compensation for this in the unlagged code (but it should
be done). I have tested this and seem to miss a lot more often than I do
without it, but I don't know if that is caused by the additional latency or
not.

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts:

  • » [odamex-bug-reporter] [Bug 751] New: Interpolation for other players - odamex-bugtracker