• Dandroid@dandroid.app
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Doom also invented the idea of only transferring deltas rather than the whole state of the game on every frame. This is the base idea behind H.264 video compression, which is what makes internet video streaming work.

    • Walop@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year ago

      I’m not sure what you mean. Do you have a source for more complete explanation?

      H.261 is way older than Doom and already uses motion compensation and inter-picture prediction.

      The aformentioned demos work by recording all input control states for every tic and then replaying them later in-engine. But I don’t think that parallels video encoding.

      EDIT: Sorry, I misread. But yeah, Doom does not send deltas but the multiplayer also works by sending those same input states every tic that demo recording saves.

      • Dandroid@dandroid.app
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I am probably misremembering details, as this was something we learned about in my algorithms class in college about a decade ago. I’ll see if I can dig up more details after work today.