It just records still frames, I guess is how I would describe it? I'm using Nvidia Shadowplay/experience + Vulkan + fake fullscreen if that matters. I don't think it matters if the game is on focus or if you're on alt tabbed.
EDIT: Tried fullscreen mode, same result.
EDIT: Recording with Nvidia Experience seems to work fine when using DX11.