Render scaling

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Skipperro

Hi,

I would like to render my game in 200% scale, but display it in smaller window.
For example, I want my window to be 800x600, but that the game was actually rendered with 1600x1200 resolution. I need it mostly tor benchmarking and other performance analyzing stuff.

Is it possible to do in Godot?

:bust_in_silhouette: Reply From: CathodeRayBlues

Do the following in your project settings:

Set the stretch mode to viewport.
Set the default window size to 1600x1200,
then set the test width to 800x600.

That will likely do the trick.

Yup, judged by lower FPS this do the trick.

But there are some notes:

  • 2D GUI is 2x smaller with this trick. To fix it I had to set scale to 2 on main 2D node.
  • 1600x1200 image is not interpolated when scaled back to 800x600. It’s not important for me for my current mini-project, but it’s good to know, it’s not antialiasing replacement.

Skipperro | 2019-10-23 05:50