I installed weekly build retropie-bullseye-4.8.5-rpi3_zero2w (24-Mar-2024 05:10) and added it to config.txt:
dtoverlay=vc4-kms-v3d dtoverlay=vc4-kms-DPI-35inch dtoverlay=waveshare-35dpi-3b-4b dtoverlay=waveshare-35dpi-3b dtoverlay=waveshare-35dpi-4b dtoverlay=waveshare-35dpi dtoverlay=waveshare-touch-35dpiAnd I got a normal FPS!