rendering
false
vbox
20
hbox
1
1
/sim/gui/dialogs/rendering/shader-warning
1
1.0
0.6
0.6
center
hbox
vbox
1
vbox
hbox
left
frame-rate-throttle
/sim/gui/frame-rate-throttled
dialog-apply
frame-rate-throttle
nasal
46
frame-rate
/sim/frame-rate-throttle-hz
0
15.0
70.0
1.0
true
/sim/frame-rate-throttle-hz
dialog-apply
frame-rate
/sim/frame-rate-throttle-hz
0
%2.0f Hz
true
/sim/frame-rate-throttle-hz
left
sim/current-view/field-of-view-compensation
nasal
left
texture-cache-enabled
/sim/rendering/texture-cache/cache-enabled
dialog-apply
texture-cache-enabled
left
/sim/rendering/point-sprites
dialog-apply
left
/sim/rendering/triangle-directional-lights
dialog-apply
/sim/rendering/point-sprites
left
jetways
/nasal/jetways/enabled
dialog-apply
jetways
left
satellite-photoscenery
/sim/rendering/photoscenery/enabled
dialog-apply
satellite-photoscenery
left
wireframe
/sim/rendering/wireframe
dialog-apply
wireframe
hbox
left
max-plod
100.0
10000.0
100.0
0.17
/sim/rendering/max-paged-lod
dialog-apply
max-plod
%d
true
/sim/rendering/max-paged-lod
1.0
0.6
0.6
/sim/rendering/max-paged-lod
500.0
table
hbox
0
0
/sim/rendering/preset-active
left
graphics-preset
150
/sim/gui/dialogs/rendering/preset
/sim/gui/dialogs/rendering/presets-list
dialog-apply
graphics-preset
nasal
hbox
0
0
/sim/rendering/preset-active
left
0
1
custom-settings
/sim/gui/dialogs/rendering/custom-settings
dialog-apply
custom-settings
nasal
table
/sim/rendering/preset-active
0
0
preset-description
fill
true
400
60
15
false
true
true
0
/sim/rendering/preset-description
hbox
left
ws30
/scenery/use-vpb
/sim/gui/dialogs/rendering/vpb-available
dialog-apply
ws30
hbox
right
/scenery/use-vpb
true
elev-delta
/scenery/use-vpb
true
0.0
20.0
1.0
0.17
/scenery/elevation-mesh/constraint-gap-m
dialog-apply
elev-delta
/scenery/use-vpb
true
%2dm
true
/scenery/elevation-mesh/constraint-gap-m
/sim/rendering/restart-required
1.0
0.6
0.6
vbox
1
0));
setprop("/sim/gui/dialogs/rendering/custom-settings", !getprop("/sim/rendering/preset-active"));
# Intel GPU warning
var vendor = getprop("/sim/rendering/gl-vendor");
if (vendor != nil) {
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);
}
}
# 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,
}));
if (getprop('/sim/rendering/preset-active')) {
setprop('/sim/gui/dialogs/rendering/preset', getprop('/sim/rendering/preset-name'));
}
# WS 3.0
var osg_version = getprop("/sim/version/openscenegraph");
if ((osg_version != nil) and (find("3.6", osg_version) == 0 or find("3.7", osg_version) == 0)) {
# Currently vpb requires OSG 3.6 specifically.
setprop("/sim/gui/dialogs/rendering/vpb-available", 1);
} else {
setprop("/sim/gui/dialogs/rendering/vpb-available", 0);
}
]]>