Video kills frame rate

Hello,

I need to run some videos in my project. They are only 3d mb in size… but it kills the frame rate… i 've based it off of this tutorial:

https://developer.playcanvas.com/en/tutorials/video-textures/

Any tips to get that frame rate better with video?

thank you!

Hi @Mattturner2021,

Are you playing multiple videos in parallel? That can indeed kill performance especially on lower end devices.

Or are you getting worse performance on a single video?

Try posting more details and if possible a sample project that reproduces this issue so we can give it a try.

2 Likes

its just the one video… frame rate drops to about 20 fps. This is on my desktop computer through the browser

Are you using Firefox? There’s an issue with video textures using RGB formats instead of RGBA:

Check the function that creates the texture and try changing it to RGBA if it is RGB

4 Likes

that fixed it …frame rate now 120 :slight_smile: thank you so much!