0 votes

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?

in Engine by (136 points)

1 Answer

0 votes
Best answer

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.

by (58 points)
selected by

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.
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.