• Jako302@feddit.org
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    11 hours ago

    Since when are mouse inputs tied to individual frames?

    Neither to action you perform nor the reaction from the Programm should be delayed, only the visual feedback you get.

    Sure some older Programms don’t use internal ticks bit instead use the framerate for that, which leads to a lot of issues with higher framerates as well, but they are few and far between.

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      10 hours ago

      Input in many games are tied to frames, and this isn’t necessarily a bad thing. Sure, you could poll for inputs faster, but you have to pick some rate, and framerate is a reasonable one. It certainly shouldn’t be slower, and faster isn’t really useful because the player can only respond at framerate speed. Faster just creates more processing that needs to be done without much gain. Sometimes there’s interpolation to figure out what they would have clicked on/shot at at a sub-frame timing though, to make fast actions accurate, without a ton of extra processing.

      Physics is almost always not tied to framerate, because the player response isn’t what matters usually.

      Regardless, a longer time to see the response is equivalent to response time.