[LINUX][0.22.2] Framerate drops to 40 while game is running at 60fps in 4K stream #2348
Replies: 2 comments 6 replies
-
I have tried patching like mentioned here: However, the VAAPI encoder doesn't support AVBR rc_mode and the software / CPU cannot sustain 4k60 fps encoding. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that I cannot reproduce this issue when the performance level is set to high:
For some reason, the dynamic power management even when during heavy workloads is apparently still finding ways to lower clocks/power usage in ways that destroys encoding performance, while the main workload itself remains fairly stable. Observing if this is a definitive fix for this problem. AMD or rather RADEON being the usual enemies with DPM since 10 years I guess. |
Beta Was this translation helpful? Give feedback.
-
Setup
GPU: 7900XTX
RAM: 64 GB
vainfo
Trying display: wayland
vainfo: VA-API version: 1.21 (libva 2.21.0)
>vainfo: Driver version: Mesa Gallium driver 24.0.3-arch1.2 for AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 17.0.6, DRM 3.57, 6.8.1-zen1-1-zen)
vainfo: Supported profile and entrypoints
* VAProfileH264ConstrainedBaseline: VAEntrypointVLD
* VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
* VAProfileH264Main : VAEntrypointVLD
* VAProfileH264Main : VAEntrypointEncSlice
* VAProfileH264High : VAEntrypointVLD
* VAProfileH264High : VAEntrypointEncSlice
* VAProfileHEVCMain : VAEntrypointVLD
* VAProfileHEVCMain : VAEntrypointEncSlice
* VAProfileHEVCMain10 : VAEntrypointVLD
* VAProfileHEVCMain10 : VAEntrypointEncSlice
* VAProfileJPEGBaseline : VAEntrypointVLD
* VAProfileVP9Profile0 : VAEntrypointVLD
* VAProfileVP9Profile2 : VAEntrypointVLD
* VAProfileAV1Profile0 : VAEntrypointVLD
* VAProfileAV1Profile0 : VAEntrypointEncSlice
* VAProfileNone : VAEntrypointVideoProc
Problem
When streaming to my client, the stream framerate regularly drops to 40/30 fps on the very same scene. If I fiddle with some settings, stay idle on static and visually "poor" scene, the fps has a chance of bumping up again. But then can also drop again.
Illustration
At around 10s:
hzfw.webm
Meanwhile, the game framerate is a solid
99% of the time.
Logs
Beta Was this translation helpful? Give feedback.
All reactions