ezquake-source
ezquake-source copied to clipboard
REQ: Improve GFX preset menu option
The GFX preset option in the menu > graphics tab has some limitations, the issues are:
-
The options are hardcoded and rely on config files being present in
ezquake/gfx/
, it would be better if ezquake would instead automatically add options based on which configs are there, the configs follow the naming schemegfx_gl_*
the hardcoded presets are:eyecandy
faithful
fast
higheyecandy
-
When starting ezQuake, the menu doesnt remember which preset was used last, so the option shows as
eyecandy
even when a different preset is being used. -
There is no default option for ezQuake's default look.
-
There is no "none" option, say you have some custom settings set, if you click the gfx preset option there is now no way to get your old settings back, ideally before changing the preset it should save your current settings somewhere and you can get them back by setting the gfx preset to "none".
-
The preset configs are very outdated and a lot of their settings dont work in 3.6, theres also some presets for software mode which arent needed anymore.
- Ezquake should IMO write out a few hard coded configs into ezquake/gfx/ if they are not present. The hard coded options you mentioned are good candidates. This way you always have these presets available without relying on external files.
- Save the preset value into a cvar and when it changes execute the matching config if present.
- No comment.
- Whenever you change the preset from "none" to any of the others, ezquake can save all the gfx cvars into a config (could be named default.cfg) and when you switch back to "none", execute that config.
- No comment.