2005-04-24 14:19:49 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
2011-04-15 15:07:53 +00:00
|
|
|
<name>rendering</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<padding>20</padding>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<text>
|
2012-10-06 22:03:40 +00:00
|
|
|
<label>Rendering Options</label>
|
2011-04-15 15:07:53 +00:00
|
|
|
</text>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<empty>
|
|
|
|
<stretch>1</stretch>
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
2014-02-18 21:27:51 +00:00
|
|
|
|
2020-11-24 01:48:01 +00:00
|
|
|
<text>
|
|
|
|
<visible>
|
|
|
|
<equals>
|
|
|
|
<property>/sim/gui/dialogs/rendering/shader-warning</property>
|
|
|
|
<value>1</value>
|
|
|
|
</equals>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
2021-03-31 02:05:34 +00:00
|
|
|
<label>Warning: Your graphics card may not support complex graphics.</label>
|
2020-11-24 01:48:01 +00:00
|
|
|
</text>
|
2011-04-15 15:07:53 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<halign>center</halign>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
|
2020-11-24 01:48:01 +00:00
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
2011-07-31 11:13:37 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
2020-05-10 15:23:54 +00:00
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<label>Throttle frame rate</label>
|
|
|
|
<name>frame-rate-throttle</name>
|
|
|
|
<property>/sim/gui/frame-rate-throttled</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>frame-rate-throttle</object-name>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var throttled = getprop("/sim/gui/frame-rate-throttled");
|
|
|
|
if (throttled)
|
2021-03-31 02:05:34 +00:00
|
|
|
setprop("/sim/frame-rate-throttle-hz", 60);
|
2020-05-10 15:23:54 +00:00
|
|
|
else
|
2021-03-31 02:05:34 +00:00
|
|
|
setprop("/sim/frame-rate-throttle-hz", 0);
|
2020-05-10 15:23:54 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
<empty>
|
|
|
|
<pref-width>46</pref-width>
|
|
|
|
</empty>
|
|
|
|
<slider>
|
|
|
|
<name>frame-rate</name>
|
|
|
|
<visible>
|
|
|
|
<greater-than>
|
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
|
|
|
<value>0</value>
|
|
|
|
</greater-than>
|
|
|
|
</visible>
|
|
|
|
<min>15.0</min>
|
|
|
|
<max>70.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>frame-rate</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
<text>
|
|
|
|
<visible>
|
|
|
|
<greater-than>
|
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
|
|
|
<value>0</value>
|
|
|
|
</greater-than>
|
|
|
|
</visible>
|
|
|
|
<label>99 Hz</label>
|
|
|
|
<format>%2.0f Hz</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/frame-rate-throttle-hz</property>
|
2011-07-31 11:13:37 +00:00
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2020-05-10 15:23:54 +00:00
|
|
|
<label>Compensate field of view for wider screens</label>
|
|
|
|
<property>sim/current-view/field-of-view-compensation</property>
|
2011-07-31 11:13:37 +00:00
|
|
|
<binding>
|
2020-05-10 15:23:54 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>view.screenWidthCompens.toggle()</script>
|
2011-07-31 11:13:37 +00:00
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2020-05-10 15:23:54 +00:00
|
|
|
|
|
|
|
<checkbox>
|
2020-11-24 01:48:01 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
<label>Use disk space for faster loading (DDS Texture Cache)</label>
|
|
|
|
<name>texture-cache-enabled</name>
|
|
|
|
<property>/sim/rendering/texture-cache/cache-enabled</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>texture-cache-enabled</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2011-07-31 11:13:37 +00:00
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Use point sprites for runway lights</label>
|
|
|
|
<property>/sim/rendering/point-sprites</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Use triangles for directional lights</label>
|
|
|
|
<property>/sim/rendering/triangle-directional-lights</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
<enable>
|
|
|
|
<property>/sim/rendering/point-sprites</property>
|
|
|
|
</enable>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Animated jetways</label>
|
|
|
|
<name>jetways</name>
|
|
|
|
<property>/nasal/jetways/enabled</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>jetways</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Satellite Photoscenery</label>
|
|
|
|
<name>satellite-photoscenery</name>
|
|
|
|
<property>/sim/rendering/photoscenery/enabled</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>satellite-photoscenery</object-name>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
2011-07-31 11:13:37 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
2020-05-10 15:23:54 +00:00
|
|
|
<label>Wireframe</label>
|
|
|
|
<name>wireframe</name>
|
|
|
|
<property>/sim/rendering/wireframe</property>
|
2011-07-31 11:13:37 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2020-05-10 15:23:54 +00:00
|
|
|
<object-name>wireframe</object-name>
|
2011-07-31 11:13:37 +00:00
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2020-05-10 15:23:54 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
<text>
|
2021-01-27 20:05:49 +00:00
|
|
|
<label>Maximum number of aircraft and scenery tiles cached</label>
|
2020-05-10 15:23:54 +00:00
|
|
|
</text>
|
|
|
|
<slider>
|
|
|
|
<name>max-plod</name>
|
|
|
|
<min>100.0</min>
|
|
|
|
<max>10000.0</max>
|
|
|
|
<step>100.0</step>
|
|
|
|
<fraction>0.17</fraction>
|
|
|
|
<property>/sim/rendering/max-paged-lod</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>max-plod</object-name>
|
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
<text>
|
|
|
|
<label>12345</label>
|
|
|
|
<format>%d</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/sim/rendering/max-paged-lod</property>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<label>Warning: High values use a lot amount of memory and GPU</label>
|
|
|
|
<visible>
|
|
|
|
<greater-than>
|
|
|
|
<property>/sim/rendering/max-paged-lod</property>
|
|
|
|
<value>500.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</visible>
|
|
|
|
</text>
|
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
<hrule/>
|
2020-05-10 15:23:54 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
2021-03-31 02:05:34 +00:00
|
|
|
<property>/sim/rendering/preset-active</property>
|
2020-05-10 15:23:54 +00:00
|
|
|
</visible>
|
|
|
|
<text>
|
2021-03-31 02:05:34 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
<label>Graphics Quality</label>
|
2020-05-10 15:23:54 +00:00
|
|
|
</text>
|
2021-03-31 02:05:34 +00:00
|
|
|
<combo>
|
|
|
|
<name>graphics-preset</name>
|
|
|
|
<pref-width>150</pref-width>
|
|
|
|
<property>/sim/gui/dialogs/rendering/preset</property>
|
|
|
|
<properties>/sim/gui/dialogs/rendering/presets-list</properties>
|
2020-05-10 15:23:54 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2021-03-31 02:05:34 +00:00
|
|
|
<object-name>graphics-preset</object-name>
|
2020-05-10 15:23:54 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
2021-03-31 02:05:34 +00:00
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
fgcommand("apply-graphics-preset", props.Node.new({'preset-name': getprop("/sim/gui/dialogs/rendering/preset")}));
|
|
|
|
</script>
|
2020-05-10 15:23:54 +00:00
|
|
|
</binding>
|
2021-03-31 02:05:34 +00:00
|
|
|
</combo>
|
2020-05-10 15:23:54 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
2021-03-31 02:05:34 +00:00
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/preset-active</property>
|
|
|
|
</not>
|
2020-05-10 15:23:54 +00:00
|
|
|
</visible>
|
|
|
|
|
|
|
|
<button>
|
2021-03-31 02:05:34 +00:00
|
|
|
<legend>Advanced Options</legend>
|
2020-05-10 15:23:54 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-show</command>
|
2021-03-31 02:05:34 +00:00
|
|
|
<dialog-name>advanced-graphics-options</dialog-name>
|
2020-05-10 15:23:54 +00:00
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
<dialog-name>rendering</dialog-name>
|
|
|
|
</binding>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>0</row>
|
|
|
|
<col>1</col>
|
|
|
|
<label>Custom</label>
|
|
|
|
<name>custom-settings</name>
|
2021-03-31 02:05:34 +00:00
|
|
|
<property>/sim/gui/dialogs/rendering/custom-settings</property>
|
2020-05-10 15:23:54 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>custom-settings</object-name>
|
|
|
|
</binding>
|
2021-03-31 02:05:34 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
setprop("/sim/rendering/preset-active", !getprop("/sim/gui/dialogs/rendering/custom-settings"));
|
|
|
|
</script>
|
|
|
|
</binding>
|
2020-05-10 15:23:54 +00:00
|
|
|
</checkbox>
|
2021-03-31 02:05:34 +00:00
|
|
|
|
2020-05-10 15:23:54 +00:00
|
|
|
</group>
|
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<textbox>
|
|
|
|
<visible>
|
|
|
|
<property>/sim/rendering/preset-active</property>
|
|
|
|
</visible>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<name>preset-description</name>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<pref-width>400</pref-width>
|
|
|
|
<pref-height>60</pref-height>
|
|
|
|
<slider>15</slider>
|
|
|
|
<editable>false</editable>
|
|
|
|
<wrap>true</wrap>
|
|
|
|
<live>true</live>
|
|
|
|
<top-line>0</top-line>
|
|
|
|
<property>/sim/rendering/preset-description</property>
|
|
|
|
</textbox>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<visible>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/preset-active</property>
|
|
|
|
</not>
|
|
|
|
</visible>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<legend>Save custom settings to file</legend>
|
|
|
|
<pref-width>200</pref-width>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var save = func(n) fgcommand("save-graphics-preset", props.Node.new({ path: n.getValue() }));
|
|
|
|
custom_preset_sel = gui.FileSelector.new(save,
|
|
|
|
"Save Custom Settings", "Save", ["*.xml"],
|
|
|
|
getprop("/sim/fg-home"), "custom-preset.xml");
|
|
|
|
custom_preset_sel.open();
|
|
|
|
</script>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
2011-07-31 11:13:37 +00:00
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
<hrule/>
|
2020-05-10 15:23:54 +00:00
|
|
|
|
2012-06-16 21:27:58 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2021-03-31 02:05:34 +00:00
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>WS3.0 (Experimental - requires OSG 3.6)</label>
|
|
|
|
<name>ws30</name>
|
|
|
|
<property>/scenery/use-vpb</property>
|
2020-05-10 15:23:54 +00:00
|
|
|
<enable>
|
2021-03-31 02:05:34 +00:00
|
|
|
<property>/sim/gui/dialogs/rendering/vpb-available</property>
|
2020-05-10 15:23:54 +00:00
|
|
|
</enable>
|
2021-03-31 02:05:34 +00:00
|
|
|
|
2012-06-16 21:27:58 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2021-03-31 02:05:34 +00:00
|
|
|
<object-name>ws30</object-name>
|
2020-05-10 15:23:54 +00:00
|
|
|
</binding>
|
2021-03-31 02:05:34 +00:00
|
|
|
</checkbox>
|
2020-05-10 15:23:54 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>right</halign>
|
|
|
|
<text>
|
|
|
|
<enable>
|
2021-03-31 02:05:34 +00:00
|
|
|
<equals>
|
|
|
|
<property>/scenery/use-vpb</property>
|
|
|
|
<value>true</value>
|
|
|
|
</equals>
|
2020-05-10 15:23:54 +00:00
|
|
|
</enable>
|
2021-03-31 02:05:34 +00:00
|
|
|
<label>Elevation delta below airports</label>
|
2020-05-10 15:23:54 +00:00
|
|
|
</text>
|
|
|
|
<slider>
|
2021-03-31 02:05:34 +00:00
|
|
|
<name>elev-delta</name>
|
|
|
|
<enable>
|
|
|
|
<equals>
|
|
|
|
<property>/scenery/use-vpb</property>
|
|
|
|
<value>true</value>
|
|
|
|
</equals>
|
|
|
|
</enable>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>20.0</max>
|
|
|
|
<step>1.0</step>
|
|
|
|
<fraction>0.17</fraction>
|
|
|
|
<property>/scenery/elevation-mesh/constraint-gap-m</property>
|
2012-06-16 21:27:58 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
2021-03-31 02:05:34 +00:00
|
|
|
<object-name>elev-delta</object-name>
|
2012-06-16 21:27:58 +00:00
|
|
|
</binding>
|
|
|
|
</slider>
|
|
|
|
<text>
|
2021-03-31 02:05:34 +00:00
|
|
|
<label>1234567890</label>
|
2020-05-10 15:23:54 +00:00
|
|
|
<enable>
|
2021-03-31 02:05:34 +00:00
|
|
|
<equals>
|
|
|
|
<property>/scenery/use-vpb</property>
|
|
|
|
<value>true</value>
|
|
|
|
</equals>
|
2020-05-10 15:23:54 +00:00
|
|
|
</enable>
|
2021-03-31 02:05:34 +00:00
|
|
|
<format>%2dm</format>
|
2012-06-16 21:27:58 +00:00
|
|
|
<live>true</live>
|
2021-03-31 02:05:34 +00:00
|
|
|
<property>/scenery/elevation-mesh/constraint-gap-m</property>
|
2020-05-10 15:23:54 +00:00
|
|
|
</text>
|
|
|
|
</group>
|
2011-04-15 15:07:53 +00:00
|
|
|
|
2020-11-24 01:48:01 +00:00
|
|
|
<text>
|
2021-03-31 02:05:34 +00:00
|
|
|
<visible>
|
|
|
|
<property>/sim/rendering/restart-required</property>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.6</green>
|
|
|
|
<blue>0.6</blue>
|
|
|
|
</color>
|
|
|
|
<label>Some changes require a complete restart to be applied.</label>
|
2020-11-24 01:48:01 +00:00
|
|
|
</text>
|
2021-03-31 02:05:34 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
</group>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
2020-11-24 01:48:01 +00:00
|
|
|
<!-- only for a gap -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>1</default-padding>
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
</group>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
2005-04-24 14:19:49 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<button>
|
2015-05-03 16:13:50 +00:00
|
|
|
<legend> OK </legend>
|
2020-11-24 01:48:01 +00:00
|
|
|
<default>true</default>
|
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
2021-03-31 02:05:34 +00:00
|
|
|
if (getprop("/sim/rendering/scenery-reload-required")) {
|
|
|
|
fgcommand("reinit", props.Node.new({"subsystem": "scenery"}));
|
|
|
|
}
|
|
|
|
if (getprop("/sim/rendering/compositor-reload-required")) {
|
|
|
|
fgcommand("reload-compositor");
|
|
|
|
}
|
2020-11-24 01:48:01 +00:00
|
|
|
</script>
|
|
|
|
</binding>
|
2011-04-15 15:07:53 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2010-04-10 13:33:14 +00:00
|
|
|
|
2011-04-15 15:07:53 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
2017-01-21 21:44:05 +00:00
|
|
|
<![CDATA[
|
2012-04-08 22:05:48 +00:00
|
|
|
setprop("/sim/gui/frame-rate-throttled", (getprop("/sim/frame-rate-throttle-hz") > 0));
|
2021-03-31 02:05:34 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/custom-settings", !getprop("/sim/rendering/preset-active"));
|
2012-10-06 22:03:40 +00:00
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
# Intel GPU warning
|
2021-02-02 16:55:00 +00:00
|
|
|
var vendor = getprop("/sim/rendering/gl-vendor");
|
|
|
|
if (vendor != nil) {
|
2021-03-31 02:05:34 +00:00
|
|
|
vendor = string.lc(vendor);
|
|
|
|
if (find("intel", vendor) != -1) {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/shader-warning", 1);
|
|
|
|
} else {
|
|
|
|
setprop("/sim/gui/dialogs/rendering/shader-warning", 0);
|
|
|
|
}
|
2021-02-02 16:55:00 +00:00
|
|
|
}
|
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
# populate the presets combo based on the registered presets
|
|
|
|
fgcommand('list-graphics-presets', props.Node.new({
|
|
|
|
'destination-path': '/sim/gui/dialogs/rendering/presets-list',
|
|
|
|
'as-combobox-values':1,
|
|
|
|
'clear-destination':1,
|
|
|
|
}));
|
2021-02-02 16:55:00 +00:00
|
|
|
|
2021-04-02 15:38:55 +00:00
|
|
|
if (getprop('/sim/rendering/preset-active')) {
|
|
|
|
setprop('/sim/gui/dialogs/rendering/preset', getprop('/sim/rendering/preset-name'));
|
|
|
|
}
|
|
|
|
|
2021-03-31 02:05:34 +00:00
|
|
|
# WS 3.0
|
|
|
|
var osg_version = getprop("/sim/version/openscenegraph");
|
2021-02-27 06:33:18 +00:00
|
|
|
if ((osg_version != nil) and (find("3.6", osg_version) == 0 or find("3.7", osg_version) == 0)) {
|
2021-03-31 02:05:34 +00:00
|
|
|
# Currently vpb requires OSG 3.6 specifically.
|
|
|
|
setprop("/sim/gui/dialogs/rendering/vpb-available", 1);
|
2021-02-02 15:56:07 +00:00
|
|
|
} else {
|
2021-03-31 02:05:34 +00:00
|
|
|
setprop("/sim/gui/dialogs/rendering/vpb-available", 0);
|
2021-02-02 15:56:07 +00:00
|
|
|
}
|
2021-03-31 02:05:34 +00:00
|
|
|
]]>
|
2011-04-15 15:07:53 +00:00
|
|
|
</open>
|
|
|
|
</nasal>
|
2005-04-24 14:19:49 +00:00
|
|
|
</PropertyList>
|