1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-05 19:11:37 +00:00

Allow any integer number >= 0 for antialiasing level

There is wider support than just specific powers of two. The supported level
will be detected anyway.
This commit is contained in:
elsid 2023-06-06 00:04:21 +02:00
parent 25c1e6abee
commit 7d11a18907
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ namespace Settings
SettingValue<int> mScreen{ mIndex, "Video", "screen", makeMaxSanitizerInt(0) }; SettingValue<int> mScreen{ mIndex, "Video", "screen", makeMaxSanitizerInt(0) };
SettingValue<bool> mMinimizeOnFocusLoss{ mIndex, "Video", "minimize on focus loss" }; SettingValue<bool> mMinimizeOnFocusLoss{ mIndex, "Video", "minimize on focus loss" };
SettingValue<bool> mWindowBorder{ mIndex, "Video", "window border" }; SettingValue<bool> mWindowBorder{ mIndex, "Video", "window border" };
SettingValue<int> mAntialiasing{ mIndex, "Video", "antialiasing", makeEnumSanitizerInt({ 0, 2, 4, 8, 16 }) }; SettingValue<int> mAntialiasing{ mIndex, "Video", "antialiasing", makeMaxSanitizerInt(0) };
SettingValue<int> mVsyncMode{ mIndex, "Video", "vsync mode", makeEnumSanitizerInt({ 0, 1, 2 }) }; SettingValue<int> mVsyncMode{ mIndex, "Video", "vsync mode", makeEnumSanitizerInt({ 0, 1, 2 }) };
SettingValue<float> mFramerateLimit{ mIndex, "Video", "framerate limit", makeMaxSanitizerFloat(0) }; SettingValue<float> mFramerateLimit{ mIndex, "Video", "framerate limit", makeMaxSanitizerFloat(0) };
SettingValue<float> mContrast{ mIndex, "Video", "contrast", makeMaxStrictSanitizerFloat(0) }; SettingValue<float> mContrast{ mIndex, "Video", "contrast", makeMaxStrictSanitizerFloat(0) };

View file

@ -111,14 +111,14 @@ antialiasing
------------ ------------
:Type: integer :Type: integer
:Range: 0, 2, 4, 8, 16 :Range: >= 0
:Default: 0 :Default: 0
This setting controls anti-aliasing. Anti-aliasing is a technique designed to improve the appearance of polygon edges, This setting controls anti-aliasing. Anti-aliasing is a technique designed to improve the appearance of polygon edges,
so they do not appear to be "jagged". so they do not appear to be "jagged".
Anti-aliasing can smooth these edges at the cost of a minor reduction in the frame rate. Anti-aliasing can smooth these edges at the cost of a minor reduction in the frame rate.
A value of 0 disables anti-aliasing. A value of 0 disables anti-aliasing.
Other powers of two (e.g. 2, 4, 8, 16) are supported according to the capabilities of your graphics hardware. Other values are supported according to the capabilities of your graphics hardware.
Higher values do a better job of smoothing out the image but have a greater impact on frame rate. Higher values do a better job of smoothing out the image but have a greater impact on frame rate.
This setting can be configured from a list of valid choices in the Graphics panel of the OpenMW Launcher, This setting can be configured from a list of valid choices in the Graphics panel of the OpenMW Launcher,

View file

@ -624,7 +624,7 @@ minimize on focus loss = true
# An operating system border is drawn around the OpenMW window. # An operating system border is drawn around the OpenMW window.
window border = true window border = true
# Anti-aliasing reduces jagged polygon edges. (0, 2, 4, 8, 16). # Anti-aliasing reduces jagged polygon edges. (>=0).
antialiasing = 0 antialiasing = 0
# Vertical syncing to reduce tearing defects. # Vertical syncing to reduce tearing defects.