Tracking C++ variable state changes

Tracking class variables’ state changes can be tricky, especially if we are using too many asynchronous constructs. This is especially true for game and graphic application scenarios where hundreds and perhaps even thousands of object fly around changing their values in who knows which thread. (Who is forcing that character position into that map corner…

0

Remove Data-dependencies

Are you planning to remove data-dependencies in your logic? You might find the below useful. Statement Block Constant Time Equivalent x++; if(x >= MAX_SIZE) x = 0; x = ( x + 1 ) % MAX_SIZE; x–; if(x < 0) x = MAX_SIZE – 1; x = (x + MAX_SIZE – 1) % MAX_SIZE; x…

1