Might I suggest you use more functions, so you don't have so much code in GetFrame? It's good for readability.
It's also good to use the multiplication and division operators when you mean to multiply and divide, instead of bit shifts. Compilers are smart enough to turn "x * 2" into "x << 1" on their own.
__________________
Buy me a "coffee" and/or hire me to write code!
Last edited by jackoneill; 13th August 2014 at 17:17.
|