3 ms·
More faster is more better; you only have 16 milliseconds per tick assuming you want to read input 60 times a second, some games poll even faster / have a highe
by Cthulhu_ 4y ago
More faster is more better; you only have 16 milliseconds per tick assuming you want to read input 60 times a second, some games poll even faster / have a higher frame rate.
- nmilo 4y agoIt's still a difference of 38.5 nano seconds. You have a budget 16,000,000 nanoseconds per frame. It's like Jeff Bezos writing about how to save money at Walmart; just pick the readable and stupid approach and move on. Game loops are made fast or slow by the efficiency of their tight loops: the render loop, physics update loop, UI loop, etc. Something that happens once per frame is barely ever worth considering.
- GeoKureli 4y agoAgreed, 35ns x4 times per frame is less important than readability.
- sgtnoodle 4y agoOk, but 40ns of 16ms is 0.00025% of your frame time.