News for hackers. Stuff that matters.
Re:Why FastDoom Is Fast by accrual on Wednesday March 05, 2025 @06:10PM (#43274054)
Same here. I often implemented like this, where n was some reasonable value:

    if iteration % n === 0:
        update_progress()
Re:Why FastDoom Is Fast by guappa on Thursday March 06, 2025 @04:15AM (#43278101)
I normally do it with a bitwise and of numbers that end with a sequence of 1s, like 7. so `i & 7 == 7`