getVideoOptions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add gamma) |
Lou Montana (talk | contribs) (Add headless systems note) |
||
Line 13: | Line 13: | ||
|r1= [[HashMap]] - all video settings, the key is always a [[String]], the value can be a [[String]], [[Number]], [[Boolean]] or [[Array]] (see {{Link|#Example 1}}) | |r1= [[HashMap]] - all video settings, the key is always a [[String]], the value can be a [[String]], [[Number]], [[Boolean]] or [[Array]] (see {{Link|#Example 1}}) | ||
{{Feature|important|{{hl|vramInfo}} and {{hl|monitorResolution}} are | {{Feature|important|{{hl|vramInfo}} and {{hl|monitorResolution}} are not provided on [[hasInterface|headless systems]] ([[isDedicated|dedicated]] servers and [[Arma 3: Headless Client|headless clients]]).}} | ||
|x1= <sqf> | |x1= <sqf> | ||
Line 31: | Line 31: | ||
["hdrQuality", 16], | ["hdrQuality", 16], | ||
["hdrQualityName", "Normal"], | ["hdrQualityName", "Normal"], | ||
["monitorResolution", [0, 0, 2304, 1440]], | ["monitorResolution", [0, 0, 2304, 1440]], // player PC only | ||
["objQualityName", "VeryLow"], | ["objQualityName", "VeryLow"], | ||
["objectVisibility", 800], | ["objectVisibility", 800], | ||
Line 60: | Line 60: | ||
["terrainQualityName", "Low"], | ["terrainQualityName", "Low"], | ||
["texQualityName", "VeryLow"], | ["texQualityName", "VeryLow"], | ||
["vramInfo", ["5.8 GiB", "7.9 GiB", "0 B", "231 MiB", "5.5 GiB"]], | ["vramInfo", ["5.8 GiB", "7.9 GiB", "0 B", "231 MiB", "5.5 GiB"]], // player PC only | ||
["vsync", false], | ["vsync", false], | ||
["waterReflectionQualityName", "Disabled"] | ["waterReflectionQualityName", "Disabled"] |
Revision as of 18:41, 26 January 2023
Description
- Description:
- Obtain the current system's video settings.
- Groups:
- System
Syntax
- Syntax:
- getVideoOptions
- Return Value:
- HashMap - all video settings, the key is always a String, the value can be a String, Number, Boolean or Array (see Example 1)
Examples
- Example 1:
- private _videoOptions = getVideoOptions; /* [ ["GPUName", "NVIDIA GeForce GTX 1660"], ["aspectRatioName", "Auto (Stretch)"], ["brightness", 1], ["cloudQualityName", "VeryLow"], ["displayModeName", "Window"], ["dynLightsCount", 4], ["dynLightsQualityName", "VeryLow"], ["gamma", 1], ["guiScale", 0.55], ["guiScaleName", "Small"], ["hdrQuality", 16], ["hdrQualityName", "Normal"], ["monitorResolution", [0, 0, 2304, 1440]], // player PC only ["objQualityName", "VeryLow"], ["objectVisibility", 800], ["overallPresetName", "VeryLow"], ["overallVisibility", 1000], ["particleQualityName", "Low"], ["pipQuality", 512], ["pipQualityName", "VeryLow"], ["pipVisibility", 835], ["ppBloom", 0], ["ppBrightness", 1], ["ppCausticsQualityName", "Disabled"], ["ppColorPresetName", "Default"], ["ppContrast", 1], ["ppDOF", 0], ["ppFSAA", 1] ["ppPPAAQualityName", "Disabled"], ["ppRadialBlur", 0], ["ppRotationBlur", 0], ["ppSSAOQualityName", "Disabled"], ["ppSaturation", 1], ["ppSharpenFilter", 0], ["refreshRate", 60], ["samplingPercentage", 100], ["shadowQualityName", "Low"], ["shadowVisibility", 100], ["terrainQuality", 25], ["terrainQualityName", "Low"], ["texQualityName", "VeryLow"], ["vramInfo", ["5.8 GiB", "7.9 GiB", "0 B", "231 MiB", "5.5 GiB"]], // player PC only ["vsync", false], ["waterReflectionQualityName", "Disabled"] ]; */
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note