Quote:
Originally Posted by Greg McKaskle
My testing showed that at least on Intel, the top one that used XOR was more efficient.
|
Sorry, my previous post made no sense since I forgot to attach the PNG it was referencing. It's attached now:
http://www.chiefdelphi.com/forums/sh...5&postcount=10
Quote:
|
I rewrote the other to use a case statement instead of a select and it was then the fastest. Selects tend to execute both the true and false and then select the appropriate one whereas case statements will only execute one or the other.
|
Interesting. Thanks.
Quote:
|
But at this level for toggle on a button on a joystick, we are in the weeds. Write what is readable.
|
I agree 100%. My questions here are purely academic.