Persistent graphic settings in UE4
A C++ article about persistent graphic settings in UE4:
In comparison to modern consoles there are hundreds and thousands of various PC hardware configurations. Different graphics cards, central processors, memory etc. in all sizes, shapes and colors allow for an endless number of various hardware setups. Some of those are more powerful than others, and not every PC can play the latest game with graphics settings at their maximum level. Typically on the PC platform one can control different aspects of tuning those graphics settings: from the resolution of the monitor, via anti-aliasing techniques, to texture and shadow quality levels. All these settings allow to adapt the game to the actual performance of the hardware in use.
Modern game engines allow to set such things out of the box, and UE4 is no exception. Epic calls this “scalability”, and on top of those things mentioned before in Unreal you can also set quite a few more game and graphics aspects, such as post processing quality, effects quality, material quality, and others.
Well, in UE4 you basically have two main parts to tweak in terms of graphics settings. On one hand that is the so-called video mode, which is basically nothing else than the game screen resolution, as well as whether or not to render the game in full screen mode or in a (borderless) window. On the other hand you have those quality settings mentioned above and listed in detail in the UE4 scalability documentation.
Now the question is how one can set and change those values and parameters from within the game. The obvious way is to do so via in-game console commands. A simple web search will reveal those commands to you, for example as listed in the UE4 answer hub. However, using those console commands seems to be a bit cumbersome, and from our understanding that is also not the way Epic recommends. For example, you need to explicitly call those commands every time you start the game, which for sure is not what we want. Instead we want the engine itself to automatically do all those things for us. Thus let’s have a look at handling those graphics settings the proper way, and in particular: permanently!
For reading the article, please follow this link.