+2 votes

I am trying to change rendering quality from my game, namely the Msaa filter, in rendering/quality/filters/msaa and the Allow Hidpi setting in display/window/dpi/allow_hidpi. I have tried the following code:
ProjectSettings.set_setting("display/window/dpi/allow_hidpi", true) ProjectSettings.save()
But it does not do anything, even when I stop it and restart it. The setting is not changed. I also am wondering, how do you change the msaa filter? I am not able to disable it by the code:
ProjectSettings.set_setting("rendering/quality/filters/msaa", 0)
or enable it by the code:
ProjectSettings.set_setting("rendering/quality/filters/msaa", 16)
again, I am running ProjectSettings.save().

in Engine by (52 points)

1 Answer

+2 votes

I found the answer. To do this, create a ConfigFile and save it to the directory of the executable. Name the ConfigFile "override.cfg".

by (52 points)

You can also change MSAA at run-time by modifying the root viewport's msaa property (get_viewport().msaa).

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 Frequently asked questions and 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 [email protected] with your username.