perf: Enable dual cores for Supafaust
This commit is contained in:
parent
e1fbcb61fa
commit
0c8bc5fe6f
3 changed files with 15 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
|||
-supafaust_pixel_format = rgb565
|
||||
-supafaust_thread_affinity_emu = 0x0
|
||||
-supafaust_renderer = mt
|
||||
-supafaust_thread_affinity_emu = 0x1
|
||||
-supafaust_thread_affinity_ppu = 0x2
|
||||
|
||||
bind Up = UP
|
||||
bind Down = DOWN
|
||||
|
|
|
|||
|
|
@ -11,4 +11,6 @@ mkdir -p "$BIOS_PATH/$EMU_TAG"
|
|||
mkdir -p "$SAVES_PATH/$EMU_TAG"
|
||||
HOME="$USERDATA_PATH"
|
||||
cd "$HOME"
|
||||
echo 1 > /sys/devices/system/cpu/cpu1/online
|
||||
minarch.elf "$CORES_PATH/${EMU_EXE}_libretro.so" "$ROM" &> "$LOGS_PATH/$EMU_TAG.txt"
|
||||
echo 0 > /sys/devices/system/cpu/cpu1/online
|
||||
|
|
|
|||
|
|
@ -20,11 +20,17 @@ echo noop > /sys/devices/b0230000.mmc/mmc_host/mmc1/sd_card/block/mmcblk1/queue/
|
|||
echo on > /sys/devices/b0238000.mmc/mmc_host/mmc0/power/control
|
||||
echo on > /sys/devices/b0230000.mmc/mmc_host/mmc1/power/control
|
||||
|
||||
export CPU_SPEED_MENU=504000
|
||||
export CPU_SPEED_GAME=1296000
|
||||
export CPU_SPEED_PERF=1488000
|
||||
export CPU_SPEED_MENU=504000 # 500 MHz
|
||||
export CPU_SPEED_GAME=1008000 # 1.0 GHz
|
||||
export CPU_SPEED_PERF=1296000 # 1.3 GHz
|
||||
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
|
||||
# Enable all cores (0, 1, 2, 3)
|
||||
#echo 0xf > /sys/devices/system/cpu/autoplug/plug_mask
|
||||
# Enable core 0 and 1 (but use 0 only)
|
||||
echo 0x3 > /sys/devices/system/cpu/autoplug/plug_mask
|
||||
echo 0 > /sys/devices/system/cpu/cpu1/online
|
||||
|
||||
#######################################
|
||||
|
||||
mkdir -p "$LOGS_PATH"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue