Restrain the execution of youtube-dl.exe
complete
Jordo
This feature request is mainly for VR users and people with low end computers, when you enter a world with a Youtube video it downloads it to display it without buffering, however it doesn't pay attention to how many videos it has to download and start a new process (taking up CPU and RAM) for each video it has to download (albeit, only if the map is badly designed seemingly).
So for example, joining the Karaoké map late after a ton of people have used songs opens like 20 youtube-dl.exe, pushing the CPU & RAM to 100% and completely freezing both the game and the computer (at least on my end).
Best case scenario, VRChat times out and you have to restart, worst case scenario is a long freeze, then a blue screen.
Would it be possible to limit the number of youtube-dl.exe launched at one time? Or implement something similar to a queue system?
Edit: attached a picture I somehow managed to snap the moment it started while I joined the Karaoké (my VRChat timed out afterward)
Log In
LunarLapNeko
issue has returned since the jump to unity 2017 , youtube_dl.exe gets a new process for each connection that gets called (so a failed connection by a faulty player can result in 5 or more processes that gets terminated by windows 10 due to process timing out, but even with a successful connect the process stays active until the world gets unloaded (5 minutes after the new world has loaded in )
using process lasso i managed to force only 1 instance of this but it results in other process errors
owlboy
LunarLapNeko: And it freezes VRChat until the processes are stopped? That is what this issue is about. VRChat being frozen while Youtube-dl works on requests.
LunarLapNeko
owlboy: it causes severe lag yea ... like a 70% -90% performance drop in VR ,(this is with the updated youtube-DL.exe from the github as the original could indeed freeze vrchat for a few seconds for me if i am facing the video screen)
owlboy
LunarLapNeko: So your report is about a youtube-dl version not in the client?
Also, it is strange that looking at or not looking at the screen would change things. It's starting to sound like maybe it is world specific.
To clarify, you are saying the included youtube-dl pauses for a second or two when loading a video. When you replace it with another version it causes a huge performance loss for a long time?
Aev
complete
Aev
The number of instances of youtube-dl opened at once has been limited in VRChat 2018.1.3
Jordo
I didn't take any picture, but it's gotten so ridiculous it launched a total of 200 processes on one of the newer karaoké maps!
owlboy
This has been like this since September 2017.
Jordo
owlboy: I think the spike in karaoké worlds has made it more noticable, at least for me.
WACOMalt
What karaoke map is this? The sync should be set to only run the last thing not all. Also why is YouTube-dl running locally instead of on a server offering up there resulting mp4? This all seems crazy to me...
Jordo
WACOMalt: That's Karaoké Café, but if you want an even more disastrous result then go to Tiz Nightclub. It's completely nuts.
WACOMalt
Jordo: i can't believe they are running this clientside.
The real solution here is for them to fix the issues with webpanel video support. In the past it worked great but had a small chance of crashes so instead of fixing it they disabled it entirely. Requiring the use of less-capable video panels. These don't work with VP80 codec which lots of YouTube uses. That's why they're having to convert it at all. I think their time is best spent fixing video support in webpanels. It works amazingly for games like AltspaceVR, which is also unity, and also using coherantUI for their webpanels.
desick
I agree. I was wondering why my game was crashing when I jumped on certain people. I have an i5 7600k and its throwing up my CPU usage.
H
HentaiGames
I upgraded my CPU to a i7 77k to not have to deal with it haha I took the easy way out