iBicha / UnityYoutubePlayer

Play YouTube videos in Unity
The Unlicense
336 stars 63 forks source link

Audio stops playing when game fps drops #17

Closed jkchn closed 3 years ago

jkchn commented 4 years ago

Hello. Is there a way to keep the audio playing when the fps dropped? I want to play it so listeing to music is at least not interupted.

iBicha commented 3 years ago

If there's CPU bottleneck, there isn't much we can do, except profile the project, and see what can be optimized. If there's lag, it's going to lag the whole game loop, including sound. Note that for listening to music, youtube is not (at all) the most efficient approach. Since there isn't an obvious fix for this issue, I'll close this for now. Please reopen if there's an actionable improvement we can do. Thanks