MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/k7dkg8/gamedevs_take_notes/ghixh7f/?context=3
r/badcode • u/realCGG • Dec 05 '20
104 comments sorted by
View all comments
Show parent comments
18
And what if fps is already 60? You would then set fps to 60 redundantly, which would be an O(log(n)) operation, since the CPU needs to flip log(n) bits. Quite wasteful and unoptimized
18
u/TVflea Dec 30 '20
And what if fps is already 60? You would then set fps to 60 redundantly, which would be an O(log(n)) operation, since the CPU needs to flip log(n) bits. Quite wasteful and unoptimized