Forum Discussion
MSGreg
14 years agoVisitor
Probably the biggest thing to realize is that if you double buffer the screen, you will have to redraw every object, every time. This will result in good clean movement if you optimize any calculations outside of the redraw loop. Double buffering is recommended so that you do not see "screen tears" during redraw, which happens when a draw occurs partially in two different frame refresh periods.
You will most likely have a similar wait() loop that checks for universal event type that differentiates press and release. If you must have faster speed, then search the forums on the wait / sleep bug on Roku 2 devices that cause an extra 15-20ms delay. It's possible to get rid of that delay by using timers and polling message port(s) in a tight loop.
I hope that helps!
You will most likely have a similar wait() loop that checks for universal event type that differentiates press and release. If you must have faster speed, then search the forums on the wait / sleep bug on Roku 2 devices that cause an extra 15-20ms delay. It's possible to get rid of that delay by using timers and polling message port(s) in a tight loop.
I hope that helps!