Skip to content

Severe FPS Drop After HISPlayer Integration in Unity (Android) #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ranoliyagaurang opened this issue May 16, 2025 · 17 comments
Open
Labels

Comments

@ranoliyagaurang
Copy link

Hi Team,

I currently use HISPlayer in a Unity-based Android project and have encountered a critical performance issue.

Issue Summary:
After integrating HISPlayer SDK, the FPS on most devices drops significantly — from ~60 FPS down to 10–30 FPS.
This happens even when only one video is played at a time, and no videos are running in background scenes.
The issue occurs only after initializing HISPlayer — commenting out all HISPlayer-related code immediately restores normal FPS.
Affected devices include:
Nothing CMF Phone (1)
Samsung A15 5G
Samsung S21

Steps We've Taken:
Ensured only one video plays at a time
Tested with lower resolution streams (HLS 720p)
Disabled HISPlayer code entirely to confirm the performance issue is caused by the integration
Confirmed the issue persists even when video playback is not triggered, but HISPlayer is initialized

Questions:
Can you recommend performance optimization tips or configurations for low-end and mid-range devices?
Are there any API methods to pause internal rendering or free up resources when the video is offscreen?

We’d greatly appreciate your guidance or best practices to help improve performance across devices. Please let us know if any logs or test builds are needed.

Thank you,

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 16, 2025

Hi @ranoliyagaurang,
What SDK version and Player Package are you using?

@ranoliyagaurang
Copy link
Author

SDK Version : 4.7.1 and Video Player for all Platforms

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 16, 2025

Are you using Vulkan? Can you please try with OpenGL?
We are also currently in communication with your colleague via email.

@ranoliyagaurang
Copy link
Author

ranoliyagaurang commented May 21, 2025

Initially tried using OpenGLES3, but encountered blackout screen issues on various new and old devices.
As a solution, configured the project to support both Vulkan and OpenGLES3.

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 22, 2025

Glad that it fixed your issue.

@ranoliyagaurang
Copy link
Author

Switching to both Vulkan and OpenGLES3 fixed the blackout screen issue, but did not resolve the significant frame rate drops.

@ranoliyagaurang
Copy link
Author

Please read my first message carefully.

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 27, 2025

Hi @ranoliyagaurang,

Can you please send us logs only with OpenGL?
To obtain the logs please refer to this link: https://hisplayer.github.io/UnityAndroid-SDK/#/obtaining-logs

We would like to check it more. It’s strange that this issue is only happening for you.

@ranoliyagaurang
Copy link
Author

I imported the HISPlayer package, changed the sample scene's RawImage video rendering to use a Material instead, played two videos, and set the project to use only OpenGL. However, I'm facing a blackout screen issue on many devices.

Please take a look at this APK:
https://drive.google.com/file/d/1HwhDhu25IjJRXsf1GDH1Ur5FiIBpKcb5/view?usp=sharing

@ranoliyagaurang
Copy link
Author

I tested the APK on my device and encountered a blackout screen issue.
Please check this video for reference:

https://drive.google.com/file/d/1A8owAWkaRtFNWelIfF2Xo1hUnfw_22Ds/view?usp=sharing

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 28, 2025

@ranoliyagaurang thanks,
Our team will check it. I will come back to you with feedback.

@ranoliyagaurang
Copy link
Author

@Nusi-22
Did you check??

@Nusi-22
Copy link
Contributor

Nusi-22 commented Jun 2, 2025

Hi @ranoliyagaurang,

The APK URL is not valid, can you please give us a valid URL? Or send it in the email to contact@hisplayer.com

Image

@ranoliyagaurang
Copy link
Author

Hi @Nusi-22
Please take a look at this URL
https://drive.google.com/file/d/1D6_UjiTQM17mlRe_XdUHFiZ1bONpLddi/view?usp=sharing

@ranoliyagaurang
Copy link
Author

Hi @Nusi-22
Did you check ?

@Nusi-22
Copy link
Contributor

Nusi-22 commented Jun 3, 2025

@ranoliyagaurang ,

We have tested the application you sent us on 2 devices:

  • Xiaomi 13T Pro (Ram 12Gb): The app is stable at 60fps, without any blackscreen problems.
  • Redmi Note 9 (Ram 3Gb): The app behaves as you describe in terms of fps, between 30 and 10. We didn't have any problem with black screen.

We cannot reproduce the black screen issue.

@ranoliyagaurang
Copy link
Author

Hi @Nusi-22

  • Tested on Google Pixel 8 and Nothing CMF 1, and encountered screen blackout issues on both devices.
  • Additionally, when Vulkan was enabled, the FPS dropped even further.

@Nusi-22 Nusi-22 added the Android label Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants