RetroPie/RetroPie-Setup

Optimize native platform detection

gizmo98 opened this issue · 0 comments

If Retropie-Setup cannot determine the current system platform if falls back to platform „native“. This happens if you run x86 or unknown arm platforms. Platform native adds platform flags „gl“ and „vulkan“. It adds „x11“ unless you have added „force_kms=1“ in configs/retropie.cfg. This isn‘t intuitive and it is error prone. Arm platforms may have better gles support. You should not build for platform kms if you run a desktop, because kms only modules will not work. You should also not build for platform x11 if your system is running a bare metal console login with multi-user.target like RetroPie rpi images, because there is no X environment running.

Intention of this enhancement:

  • determine and set the best platform flags for unknown targets at startup
  • take care Retropie will really run with the current environment
  • make it easier to get the bare metal experience of Retropie running on a raspberry pi for other platforms without tinkering around in ini files
  • use the same kms modules as a raspberry pi with other platforms. Makes it easier to test and maintain kms modules without a pi.

Draft:
#3686