3 ms·
"...cpu frequency was used for timing" reminds me how even today how seemingly hard it is to program a simple clock. for example, the countdown in pubg...
by modzu 8y ago
"...cpu frequency was used for timing"
reminds me how even today how seemingly hard it is to program a simple clock. for example, the countdown in pubg...
- maym86 8y ago> the countdown in pubg Care to explain?
- na85 8y agoPlayerUnknown's Battlegrounds or "pubg" is a popular but somewhat shoddy battle royale multiplayer shooter, widely criticised for bugs including several to do with the countdown that takes place as players are loading into a match.
- maym86 8y agoThanks, I know PUBG. Just curious what exactly the bug is? The timer was counting down waiting for enough players to join, is the issue related to estimating how long it will take to get 100 players?
- modzu 8y agoonce enough players join there is a 60 second countdown until the match starts. but it is not realtime. it often does things like, 60..59..58..55..53...
- ajross 8y agoThe original IBM PC lacked an RTC, clones (as with everything else) had occasional portability glitches with them, and this was a decade before the TSC arrived. If you wanted a game to have a delay loop, you counted instruction cycles. If you wanted those delays to be portable, you manually detected the CPU and ran a pre-calibrated custom loop. Yeah, that seems hard to me.
- pjc50 8y agoThe "correct" way to do this was the 1/18th sec timer interrupt, even when the RTC worked it didn't have sub-second resolution. http://www.pldworld.com/_hdl/1/VHDL_courses/www.ee.duke.edu/Research/VHDL_tutorial/webtracer/node13.html http://www.pldworld.com/_hdl/1/VHDL_courses/www.ee.duke.edu/...
- ajross 8y agoI thought the PIT was slaved to the bus clock on early systems and wasn't real time, no? Might be wrong.