Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Data-dependencies   (RSS)

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

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)
 
Page view tracker