Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jlfreund
Visitor

Animating with roImageCanvas

Hi,

I have an roImageCanvas with 2 layers, each with a fullscreen image + a few pieces of text on top. I want the second layer to animate sliding over the first. The only way I can seem to get it to work is to recreate the 2nd layer's content from scratch each frame; just doing AddReplace on the layout properties and calling SetLayer + Show isn't sufficient. And even then, it seems to require a Sleep(1000) between each Show -- shorter values start skipping frames. So it doesn't seem this will ever optimize down to something like 30FPS.

Is there another way to accomplish this -- without sacrificing the ability to paint both text + at least 2 fullscreen images?

Thanks,
Jason
0 Kudos
1 REPLY 1
renojim
Community Streaming Expert

Re: Animating with roImageCanvas

You should check out roScreen. You'll never get that kind of performance from an image canvas.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos