Key Latching and Suppression
Using key latching enables an app developer to efficiently determine whether the user has pressed a key since the last time through the game loop. Key suppression keeps the regular event loop from handling actions for the game canvas. Suppressing events can improve performance by eliminating unnecessary system calls to the keyPressed, keyRepeated, and keyReleased methods.
app Developers
Recommend: Use key latching and key suppression together to save both time and memory.
|