Skip to content

Motion Prediction

bolrog edited this page Apr 29, 2021 · 12 revisions

This is an experimental feature that extrapolates player position between server updates, giving "actual" higher than 25 fps in-game.

As far as I'm aware this has never been done before with Diablo II.

Enable with

-dxtestmop

Known bugs/limitations (this is a work in progress!)

  • Works on 1.12, 1.13c, 1.13d and 1.14d so far.
  • Currently only the player (and screen) movement is extrapolated. Mobs, NPCs etc still move at 25 fps.
  • Don't use -dxnovsync unless you also have an external framerate limiter like RTSS.
  • Use at your own risk. Limited testing means it may crash the game, delete your save files, sell your computer on eBay etc.

Upcoming changes

  • Completed support for the other game versions.
  • Extrapolated motion for other units, not just the player.

Latency

The method doesn't add any lag, but may mispredict the motion during 1/25th of a second, after which it tries to gradually compensate for the prediction error.

Clone this wiki locally