@Substring ok. i think i approximately understand the logic behind it. now i got a perfect output. a centered picture and the graphic quality is absolutely beautiful pixel by pixel.
One problem is, that Marvel vs Capcom for example is nearly a widescreen game. With 320x240 i can't get the full screen because the game got a resolution of 384x224pixels.
I've found a solution for that here but where i have to put the runcommand-onstart
and runcommand-onend scripts when i switch to retroarch? simply in the script folder?
And last but not least my config.txt if anybody needs. the timings are perfect for a Sony Trinitron KV-21X5D (of course you have to make the correct settings in retroarch. so no scaling, turn off pixel perfect, custom aspect ratio, setting offset etc.)
#uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
disable_overscan=1
#overscan_left=5
#overscan_right=5
#overscan_top=5
#overscan_bottom=5
#uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
#comment to get jack audio
#hdmi_drive=2
#config_hdmi_boost=0
#force hdmi while the tv can take time before sending the signal on the hdmi output
#hdmi_force_hotplug=1
#uncomment for composite PAL
#sdtv_mode=2
#uncomment for lirc-rpi
#dtoverlay=lirc-rpi
#if you plug your tv at the same time as your rpi and that the rpi switches from the hdmi or give a low resolution because tv had no enough time to initialize it
boot_delay=3
#uncomment if you don't want the rainbow at startup
disable_splash=1
#Overclock
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=512
avoid_safe_mode=1
kernel=zImage
#NOOBS Auto-generated Settings:
#hdmi_force_hotplug=1
dtparam=audio=on
overscan_scale=1
disable_audio_dither=1
dtoverlay=vga666
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
hdmi_timings=320 1 10 30 47 240 1 4 3 15 0 0 0 60 0 6400000 1