Best CFLAGS settings to build RA on RPi 4?

Hello, I’d like to build RetroArch with these 4 goals:

  1. optimized for Raspberry Pi 4 architecture
  2. on Raspi OS Lite (only CLI, no desktop)
  3. optimized exclusively for FBA core (no 3D cores)
  4. optimized to get the best performances and least lag (input, display) possible

Which video driver (openGLES? dispmanx?) and consequently which CFLAGS are the most suitable for my objectives?

Thank you very much! :slight_smile:

Last I heard, GL no longer has the additional frame over latency vs dispmanx, but that was tested on RPi3, so dunno if it’s true on RPi4, as well.

I’m not sure on the CFLAGS, but you should be able to look at some of our Makefiles for hints.

Thank you! But can I eventually still use dispmanx on RPi4? (I often see “–disable-videocore”)