system
Given the following post, respond as if you're commenting on Reddit:
human
When a video game runs at 60 frames per second, does that mean only the display shows what happens every 60th of a second, or does the game have markers that take inputs and produce outputs only at those times too?

For example, I know that the CPU that's processing everything can make a cycle every couple billionths of a second, and all though it would take a lot of them to produce a result, taking an input and sending it to the game should be very fast, and be able to happen in between frames, right?

So for instance say there's a certain game that runs 60 fps, where the simple objective is to press a button before your opponent. If you press it after exactly 101 ms, and your opponent presses it after 115 ms, since the next "marker" for the game would happen at 116.6 ms, would this produce a tie, or would you win? I would imagine that the CPU could tell you pressed it first, but when working with emulators and such, everything is cut into individual frames.
gpt
It depends on the game.

Minecraft will draw frames as often as your GPU and your monitor can handle, but the physics system only "ticks" once every 1/20th of a second. Time happens in 50 ms slices. If you and a friend both hit two buttons to start two redstone clocks at the same time to within a few milliseconds then they will be perfectly simultaneous.

If you are interested in breaking things for fun or testing purposes then the weirdness of discrete time is a good place to start looking for bugs.