• 1 Post
  • 44 Comments
Joined 1 year ago
cake
Cake day: August 4th, 2023

help-circle





  • gens@programming.devtomemes@lemmy.worldPastas Assembled
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    Your eyes are not digital. Nothing physical really is. Think about a camera flash. They can get well under 3.33ms, meaning over 300fps, and you can still see it clearly (and painfully). Same for a monitor, it also has a “response time”. It is how long it takes for a pixel to transition color. (Usually “gray to gray”, as in one shade of gray to another. Black to white would be longer, as is for eyes.)

    So ofc you would see all the mice.

    It’s also why motion blur is a thing, even though it was usually implemented incorrectly. Seeing every motion on a tv or monitor in perfect sharpness feels weird, because they are pictures not actual movements.

    Your brain makes movements out of it all.

    Anyway: 16 is minimum, 24 is good for most movies, 30 for slower games, 60 minimum for fps (75 and above for faster fps, even though i played xonotic on 45), 120 for vr.















  • Lets say you use a variable named abcd in your function. And a variable named abcb in a for loop inside the same function. But because reasons you mistakenly use abcd inside that loop and modify the wrong variable, so that your code sometimes doesnt work properly.

    It’s to prevent mistakes like that.

    A similar thing is to use const when the variable is not modified.