"squirreltown" wrote:
"NewManLiving" wrote:
What solved flickering for me was making sure I called finish on all bitmaps and regions where any type of drawing or drawing function, clearing or region offsetting was done. Anything that changes the state of a bitmap or region needs to be commited to the screen buffer before calling swapbuffers. So roBitmap.finish and roRegion.finish are synchronous and insures everything is where it should be. Now I use compositor and cannot say if the problem exists outside of it or if your problem is related. But I no longer have flickering problems on the 2xd or low end boxes
It's not just the compositor. I recently had a function which was tearing and flickering like nuts ( you saw it Komag) on 2XS's.
i fixed it by changing
screen.clear()
write something to bitmap in question
screen.drawobject(0,0, bitmap)
screen.swapbuffers()
to
write something to bitmap in question
screen.clear()
screen.drawobject(0,0, bitmap)
screen.swapbuffers()
Yes, the key is to not dispose (or modify?)
any 2D objects after you've initiated drawing to the screen. This flicker/tearing issue is restricted to the original Roku LT (2400), Roku 2 HD, Roku 2 XD, Roku 2 XS, and Roku Streaming Sticks (i.e., 2400 and all 3XXX models).
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)