This has happened for quite a few versions.
I always play with gamma set to 1.5 in the option menu, however, when I open the ini file the value for gamma
has this long fractional value. I'm just wondering why that is.
Anyways, my real problem is
while the gamma is set to 1.5 in the option menu,
every time I start a game the screen gamma is 1, and when I press F11 to adjust the gamma, the first key
press sets the gamma to the options value + 0.1, to 1.6.
Ending the game and restarting, then the screen is again at gamma 1. But now pressing F11 will set the
gamma to + 0.1, to 1.7 and so on, until eventually at 3.0 the gamma will roll over to start the cycle again.
The fractional part in the config file is not a bug. It is just because floating point cannot express the value 1.5 exactly and the value you see is the closest it could get.
The easiest way to explain why is like if you take the number 2/3 and write that out: 2.6666666... You can never write the exact number in a base-10 number system. However, in a base-3 number system you can, here you could write that as 2. Computer floating point uses a base-2 floating point system with a mantissa and exponent. Long story short, the value you see there is the computer trying to write 1.5 as exact as that number system allows. User interfaces usually hide this by truncating or rounding the printed value so it looks exact, but what you see there in the ini file is what the program is really seeing/using.
About the gamma problem, are you running fullscreen (hardware gamma) or windowed (shader gamma)? There's a setting in the menus that can force one mode or the other. It will be useful to know if it happens for both types or only one. Secondly, we need the gzdoom boot log. It will tell us a little about your computer and what capabilities your OpenGL driver has.
dpJudas wrote:The easiest way to explain why is like if you take the number 2/3 and write that out: 2.6666666... You can never write the exact number in a base-10 number system. However, in a base-3 number system you can, here you could write that as 2.
You don't really think about such things, because 2/3 is a rational number and it's one of those that does not repeat .0's on the end. So thinking about that exception alone, you forget about all the other maths present there. XD >_>