There shouldn't be any significant virtualization penalty. My guess is that it uses hardware video codec acceleration and that wasn't accessible in the VM you had set up? If the guest was Windows, looks like nvidia has supported this since host driver version v465 or later.
https://nvidia.custhelp.com/app/answers/detail/a_id/5173/~/g...
HTH!