-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
VideoPlayer playback smoothness regression in Godot 3.4 on some hardware #55815
Comments
@hhyyrylainen Can you reproduce this in any of the 3.4 betas and RCs to determine when the regression started? |
I can try. I already did a bit of further testing and found out that when I boot up Linux on my laptop the video runs without stuttering, so perhaps this is a Windows only issue. At least on my laptop only Windows 10 shows the issue, so this might not be a CPU power related thing. |
Here's the results from that:
|
See #53959 and #50862, this is probably because 3.4 was built without YASM optimizations on Windows, due to them causing crashes with some WebM videos. The above PR was merged after 3.4 beta 3, but earlier builds were already made without having I would advise trying the Theora decoder instead of WebM, as the latter is too buggy (and was removed in Godot 4.0: #53833). Alternatively, you could do a custom build with YASM but you'd have to revert #53959 locally. |
For now I converted our videos to the theora format (as that now seems to be the only supported one by Godot?), and one person reported that the video lag went away with that change. |
I'll close as there's no plan in the near future to improve the WebM decoder and to re-enable the crashy YASM optimizations on Windows - and the WebM support was removed in 4.0 (for now - a GDExtension might provide better video support with e.g. ffmpeg in the future). Of course if someone wants to work on these issues we can definitely review and merge fixes. |
Godot version
v3.4.stable.mono.official.206ba70f4
System information
Windows 10, GLES3, AMD Radeon R7 250 Series
Issue description
I got reports and noticed on my laptop that after the move to Godot 3.4 our game's intro video plays really choppy / lags. The audio also has issues and it seems towards the end, of the few seconds long video, it gets even worse seemingly freezing for like half a second. Stopping the video immediately manages to skip it.
I'm relatively confident that this is a Godot 3.4 regression as we haven't changed our video playing interacting code at all, but we updated our used Godot version to 3.4.
Also a problem with NVIDIA GeForce 940MX, and I haven't heard from the third user yet. I kind of suspect that lower CPU performance is the common factor here.
Update: third user has:
Second update: I just tested on Fedora 34 on my laptop and the problem doesn't occur there. So maybe this is a Windows specific issue.
Steps to reproduce
Try to play the following video with a fullscreen Godot VideoPlayer in a project: https://dev.revolutionarygamesstudio.com/api/v1/download_lfs?project=2&path=%2Fassets%2Fvideos&name=intro.webm
We have a second video which plays a bit better but also lags a bit towards the end. It's probably a bit lower in bitrate, which might be sort of the cause behind the choppy playback, however earlier Godot versions played the exact same file just fine even on my lower power laptop.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: