How to Disable Mode Switching for AMD APUs & dGPUs using a DAC - ZFEbHVUE/Batocera-CRT-Script GitHub Wiki
switchres.ini
)
π§ How to Disable Mode Switching for AMD APUs (Per-Game with This guide explains how to override SwitchRes resolution switching on a per-game basis. Itβs particularly useful when running on AMD APUs where unnecessary mode switching may cause screen flicker or issues.
We will reference the main configuration documentation here:
β‘οΈSwitchRes.ini override wiki page
π§© Concept
The idea is to create a core override file that prevents SwitchRes from changing video modes.
To avoid applying it globally, we will assign it to specific subfolders based on resolution.
Example:
224_no_mode_switch.switchres.ini
for games running in 224p240_no_mode_switch.switchres.ini
for games running in 240p448_no_mode_switch.switchres.ini
for games running in 448i478_no_mode_switch.switchres.ini
for games running in 478i480_no_mode_switch.switchres.ini
for games running in 480i
π Folder Structure Example
Organize your ROMs like this (assuming PlayStation games as example):
/userdata/roms/psx/240_no_mode_switch/YourGame.bin
/userdata/roms/psx/224_no_mode_switch/AnotherGame.bin
Place a matching .switchres.ini
in the same folder:
/userdata/roms/psx/240_no_mode_switch.switchres.ini
π How to Find the Correct Resolution
- Launch the game in Batocera.
- Exit the game.
- Check the following logs for the resolution that was used:
/userdata/system/logs/es_launch_stdout.log /userdata/system/logs/es_launch_stderr.log
- Look for messages from SwitchRes like:
Switchres: modeline generated for [email protected]
Use the detected resolution (e.g., 320x240) in your override file.
240_no_mode_switch.switchres.ini
βοΈ Sample # Forces a specific user mode, format: width x height @ refresh
# You can use 0 as a wildcard for width or refresh rate
user_mode 2560x240
# Disable interlaced modes entirely
interlace 0
β Final Notes
- This method disables dynamic resolution switching for specific games only.
- Be sure to re-scan your game list in EmulationStation after moving the ROM to the new folder.
- You can reuse the same
.switchres.ini
for any other games using the same resolution.
# Example reuse
/userdata/roms/psx/240_no_mode_switch/Game1.bin
/userdata/roms/psx/240_no_mode_switch/Game2.bin
This setup gives you granular control over which games switch modes β great for fine-tuning performance on picky hardware like AMD APUs using the
β‘οΈ Analog to digital (DAC)