Let me make it more specific!
im gunna run through these likes of code a few hundred thousand times in my program, and im currently studying for code optimization.
I'll show one for an example.
I can either do:
or i can do:Code:if[key=='w'){ keystrokes[key]=true; }
which takes less processing power?Code:keystrokes[key]=true;
EDIT: oops the thread name is wrong, not addition assignment, but just assignment.