depending on your GPU, there are tools that capture the backbuffer directly. that’s usually much better for recording the output of a renderer compared to OBS:
NVIDIA: Download NVIDIA App
AMD: https://www.amd.com/en/technologies/radeon-software-gaming-media
i would use OBS only for streaming or desktop recordings (when you want to show interaction with software/multiple windows).