Kodi Nexus on booksworm stuttering

I recently updated my dietpi to booksworm which includes an Kodi update from matrix to nexus. Ever since the video playback is broken (very slow and stuttering) I noticed that software decoding is used instead of hardware decoding. Anything I can do about that?

Using Raspberry Pi 4 4GB