Howto:Build and run FlightGear on Raspberry Pi 4: Difference between revisions

Jump to navigation Jump to search
Line 1,116: Line 1,116:
|}
|}


==Feature Scaling==
== Feature Scaling - FlightGear ==
{{See also|FlightGear and OpenGL ES}}
{{See also|FlightGear and OpenGL ES}}


===Screen Resolution===
=== Menu Bar ===
[[File:Screen Layout Editor.jpeg|thumb|150px|Raspberry Pi screen layout editor for adjusting screen resolution.]]
 
When running FlightGear, using the full screen option, 1024 X 768 resolution works well. Possibly because this is FlightGear's native resolution. In order to choose this resolution go to the Raspbian program menu 'Preferences' and run 'Screen Configuration'. Now right click on the screen that needs to be adjusted to 1024 X 768, on the Screen Layout Editor seen to the right. If using two screens, it might be best to set both screens to the same resolution. Also, it is best to have the two HDMI boxes touching so that the mouse cursor doesn't have a dead spot. Click on the green check to finish.
 
===Menu Bar===


Hiding the menu bar improves FPS too some degree. More so when FlightGear is running in a window. It can be toggled on/off with [Shift] + [F10] or the Auto Hide option can be used.
Hiding the menu bar improves FPS too some degree. More so when FlightGear is running in a window. It can be toggled on/off with [Shift] + [F10] or the Auto Hide option can be used.
Line 1,254: Line 1,249:
     .method("heightForWidth", &sc::Text::heightForWidth)
     .method("heightForWidth", &sc::Text::heightForWidth)
</syntaxhighlight>
</syntaxhighlight>
== Feature Scaling - Raspberry Pi OS ==
=== Screen Resolution ===
[[File:Screen Layout Editor.jpeg|thumb|150px|Raspberry Pi screen layout editor for adjusting screen resolution.]]
When running FlightGear, using the full screen option, 1024 X 768 resolution works well. Possibly because this is FlightGear's native resolution. In order to choose this resolution go to the Raspbian program menu 'Preferences' and run 'Screen Configuration'. Now right click on the screen that needs to be adjusted to 1024 X 768, on the Screen Layout Editor seen to the right. If using two screens, it might be best to set both screens to the same resolution. Also, it is best to have the two HDMI boxes touching so that the mouse cursor doesn't have a dead spot. Click on the green check to finish.
=== Memory split ===
The memory split option is found in the raspi-config program, under "7 Advanced Options."
<syntaxhighlight lang="diff">
sudo raspi-config
</syntaxhighlight>
This option adjusts gpu_mem and thus allots the GPU memory. Starting with the Pi4, most of the GPU memory is controlled by the the Linux kernal and there is a disadvantage when gpu_mem is set too high. Never exceed  512MB, less is better.


==Interfacing==
==Interfacing==
320

edits

Navigation menu