When I compile FS-UAE 4 for Raspberry Pi 4 I only (at the moment) use
Code:
export CFLAGS="-g -O3 -march=armv8-a"
export CXXFLAGS="-g -O3 -march=armv8-a"
I did *some* performance testing with other flags such as -mcpu=cortex-a72 and floating point options, but didn't see any significant difference. So I went with "generic ARM8" options for now, for builds intended for the RPi4. But my testing was mainly with A500 emulation. Floating point options can very well have a significant effect on FPU emulation (don't know, haven't tested)! But there was a noticeable difference going from -O2 to -O3.
I strongly recommend using options to enable 16-bits video and texture formats btw. This speeds up rendering and overall performance quite a bit.
Lowering audio frequency probably helps in theory, but I don't think there will be significant savings there. You could test though.