Skip to content

[Android] Low frame rate when using OES Texture Format on Android #2390

@yukikkawa

Description

@yukikkawa

Unity version

2021.3.57f2

Unity editor platform

macOS

AVPro Video edition

Ultra

AVPro Video version

3.3.3

Device hardware

Galaxy S9

Which Android OS version are you using?

10

Unity Graphics API

OpenGLES 3

Video API

media3/ExoPlayer

Texture format

Y Cb Cr 420_OES

Audio output

System Direct

Any other Media Player component configuration required to reproduce the issue.

No response

Which output component(s) are you using?

Apply to Mesh

Any other component configuration required to reproduce the issue.

No response

The issue

I am experiencing a significant drop in frame rate when playing videos using the OES texture format.

Using the demo scene Assets/AVProVideo/Demos/Scenes/Demo_360Stereo.unity, I achieve approximately 30 fps with the default settings (without OES). However, when I switch to using OES, the frame rate drops to around 15 fps.

Is there any way to achieve better performance when using the OES path?

Configuration & Results

I compared the performance using the following settings:

Setting Default OES
Texture Format (Android Platform) RGBA Y Cb Cr 420_OES
Shader AVProVideo/VR/InsideSphere Unlit (stereo+fog) AVProVideo/VR/InsideSphere Unlit (stereo+color) - Android OES ONLY
Observed FrameRate ~30fps ~15fps

Media information

No response

Logcat output

Metadata

Metadata

Assignees

Labels

AndroidAndroid platformBug 🐛Something isn't workingFixedA fix will be in the next release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions