• 0 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: August 16th, 2023

help-circle


  • icydefiance@lemm.eetoScience Memes@mander.xyzBiology OP
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    7 months ago

    The other replies are simplifying too much. Just adding or subtracting in a loop would be far too slow.

    A multiplier will find the partial products by using AND gates, and then sum them, which is very similar to long multiplication as they teach you in school. This article explains it pretty well.

    Division is more complicated. It’s sort of done like long division, but apparently that is slow and there’s some magic with two’s complements that can make it faster. Honestly I don’t fully understand it yet.



  • If your connection is stable, the latency will more or less be the same, but TCP will consume more bandwidth because of acknowledgement packets, making it harder to keep your connection stable.

    On an unstable connection, TCP latency will skyrocket as it resends packets, while UDP will just drop those packets unless the game engine has its own way of resending them. Most engines have that, but they only do it for data that is marked as “important”. For example using an item is important, but the position of your character probably isn’t, because it’ll be updated on the next tick anyway.