Skip to content

Critical Performance Issue on Windows After HISPlayer Integration #28

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
ayushjha71 opened this issue May 27, 2025 · 9 comments
Open
Labels

Comments

@ayushjha71
Copy link

Hi Team,

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

Issue Summary:
After integrating the HISPlayer SDK, the FPS drops significantly — from ~120 FPS down to 30–50 FPS.
The drop occurs specifically when a HISPlayer video event is triggered in the built .exe — this significantly impacts runtime performance.
The issue occurs immediately after initializing HISPlayer — commenting out all HISPlayer-related code restores normal FPS.
This performance degradation has been observed on the following device:

Windows 11 Laptop:
Intel 11th Gen CPU
16 GB RAM
NVIDIA RTX 3070 Ti (16 GB VRAM)
1 TB SSD

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 integration as the root cause
Confirmed that performance drops even without actual video playback, as long as HISPlayer is initialized

Questions:
Can you recommend performance optimization tips or configurations for Windows desktop builds?
Are there any API methods to pause internal rendering or free up HISPlayer resources when the video is offscreen or unused?

HISPlayer Package Link:- https://assetstore.unity.com/packages/tools/video/video-player-for-all-platforms-281535

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 28, 2025

Hi @ayushjha71 ,

Does it happen with our sample project and its sample content too?

@ayushjha71
Copy link
Author

Hi @Nusi-22

Thank you for your response.
I haven't personally tested the sample project and its content in the executable (EXE) build. However, one of my colleagues has tested it on an Android device. Regarding the specific issue you're referring to, they are currently in contact with the concerned team under Issue No. 26.

Additionally, I have attached a screenshot of the profiler report. Please review it and see if it helps provide a clearer understanding of the issue.

Image

@Nusi-22
Copy link
Contributor

Nusi-22 commented May 28, 2025

Hi @ayushjha71 ,

Our team will check it. I will come back to you shortly.

@ayushjha71
Copy link
Author

Hi @Nusi-22
Did you checked?
Please let us know as soon as possible. We are stuck on this.

@Nusi-22
Copy link
Contributor

Nusi-22 commented Jun 2, 2025

Hi @ayushjha71 ,

Yes, our team is checking it. Please give us a bit more time. I will get back to you.

@Nusi-22
Copy link
Contributor

Nusi-22 commented Jun 2, 2025

@ayushjha71 ,
We cannot reproduce that FPS drop issue on Windows. Does it happen with our sample?

@ayushjha71
Copy link
Author

ayushjha71 commented Jun 2, 2025

Hi @Nusi-22
Thanks for your response.
Yes, I’ve tested the sample, and I’m observing similar FPS drops — fluctuating between 30 to 50 FPS, occasionally even lower.
Could you please suggest any profiling tools, recommended settings, or optimization steps that might help identify and resolve the cause of this performance drop?

@ayushjha71
Copy link
Author

Hi @Nusi-22
any incite on above question? Please let us know

@Nusi-22 Nusi-22 closed this as completed Jun 3, 2025
@Nusi-22 Nusi-22 reopened this Jun 3, 2025
@Nusi-22
Copy link
Contributor

Nusi-22 commented Jun 3, 2025

@ayushjha71 ,
We were able to reproduce the frame dropping, just not as much as you observed. In any case, we have started a task force to improve the video performance for this type of use cases, will come back to you when there is an updated SDK. At the moment, there is nothing that we can recommend to improve your experience, will work hard on improving it.

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