Is it bad to constantly set a variable to a static value for duration of a keypress in event tick?
Event Tick() if BKeyPressed = True then setMaxSpeed = 5000
or should I always set the values in the keypress/released where button press only fire once?
(note: KeyPress Events only fire once) ifBKeyPressed then setMaxSpeed = 5000 ifBKeyReleased then setMaxSpeed = 50
Obviously the latter seems more efficient, but does it matter? Is it okay to set a variable to the same value over and over in the event tick for the duration of a keypress?