Viewport Render UPBGE Project?

Hi,

I’ve found Viewport Render which is faster than Render Animation. However UPBGE is rendering in real time. How to render that to a video rather than doing slow standard animation renders that won’t render the animation defined in game engine logic bricks ?

Cheers

Using https://upbge.org/#/documentation/docs/latest/api/bge.render.html#bge.render.makeScreenshot