kodi-game / game.libretro.beetle-psx

Beetle-PSX for Kodi
https://github.com/libretro/beetle-psx-libretro
1 stars 7 forks source link

Games render very slowly in Kodi #21

Closed rimeno closed 9 months ago

rimeno commented 9 months ago

Bug report

Describe the bug

When I start a rom from Kodi with beetle-psx, it's unplayable, very slow render, with different games. I have a popup message telling about no hardware acceleration.

RetroArch Behavior

With same core and games, I can play at full speed with retroarch.

To Reproduce

Steps to reproduce the behavior: Start the PSX game from Kodi with beetle-psx core.

Debuglog

2024-02-01 22:23:00.332 T:86083    info <general>: RetroPlayer[PROCESS]: Created process info for X11
2024-02-01 22:23:00.347 T:86083   error <general>: Interface_Base::get_setting_string - can't find setting 'beetle_psx_analog_toggle_combo' in 'Sony - PlayStation (Beetle PSX)'
2024-02-01 22:23:00.347 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Setting beetle_psx_analog_toggle_combo not found by Kodi
2024-02-01 22:23:00.347 T:86083   error <general>: Interface_Base::get_setting_string - can't find setting 'beetle_psx_analog_toggle_hold' in 'Sony - PlayStation (Beetle PSX)'
2024-02-01 22:23:00.347 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Setting beetle_psx_analog_toggle_hold not found by Kodi
2024-02-01 22:23:00.347 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Invalid settings detected, generating new settings and language files
2024-02-01 22:23:00.350 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Settings and language files have been placed in /home/mc/.kodi/userdata/addon_data/game.libretro.beetle-psx/generated/language/English
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: ------------------------------------
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: Loaded DLL for game.libretro.beetle-psx
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: Client:              Sony - PlayStation (Beetle PSX)
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: Version:             0.9.44.43
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: Valid extensions:    .ccd .chd .cue .exe .m3u .pbp .toc
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: Supports VFS:        false
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: Supports standalone: false
2024-02-01 22:23:00.351 T:86083    info <general>: GAME: ------------------------------------
2024-02-01 22:23:00.351 T:86083    info <general>: RetroPlayer[PLAYER]: Opening: /data/games/roms/psx/WipEout (USA)/WipEout (USA).cue
2024-02-01 22:23:00.352 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Rumble interface supported!

2024-02-01 22:23:00.352 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Unknown setting ID: beetle_psx_renderer
2024-02-01 22:23:00.352 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Unknown setting ID: beetle_psx_pgxp_vertex
2024-02-01 22:23:00.352 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Unknown setting ID: beetle_psx_pgxp_texture
2024-02-01 22:23:00.352 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Unknown setting ID: beetle_psx_filter
2024-02-01 22:23:00.352 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Loading /data/games/roms/psx/WipEout (USA)/WipEout (USA).cue...

2024-02-01 22:23:00.394 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Checking if required firmware is present...

2024-02-01 22:23:00.402 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Firmware found: /home/mc/.kodi/userdata/addon_data/game.libretro.beetle-psx/resources/system/scph5501.bin

2024-02-01 22:23:00.402 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Firmware SHA1: 0555C6FAE8906F3F09BAF5988F00E55F88E9F30B

2024-02-01 22:23:00.420 T:86083   error <general>: AddOnLog: game.libretro.beetle-psx: Unknown setting ID: beetle_psx_renderer
2024-02-01 22:23:00.420 T:86083    info <general>: GAME: ---------------------------------------
2024-02-01 22:23:00.420 T:86083    info <general>: GAME: Game loop:      true
2024-02-01 22:23:00.421 T:86083    info <general>: GAME: FPS:            59.826000
2024-02-01 22:23:00.421 T:86083    info <general>: GAME: Sample Rate:    44100.000000
2024-02-01 22:23:00.421 T:86083    info <general>: GAME: Region:         NTSC
2024-02-01 22:23:00.421 T:86083    info <general>: GAME: Savestate size: 16777216
2024-02-01 22:23:00.421 T:86083    info <general>: GAME: ---------------------------------------
2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 1: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 2: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 3: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 4: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 5: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 6: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 7: PlayStation Controller

2024-02-01 22:23:00.421 T:86083    info <general>: AddOnLog: game.libretro.beetle-psx: Controller 8: PlayStation Controller

2024-02-01 22:23:00.448 T:86083    info <general>: GAME: In-game saves (save ram) loaded from special://masterprofile/Savestates/InGameSaves/WipEout (USA).cue.sav
2024-02-01 22:23:00.448 T:86083   error <general>: Failed to open savestate file 
2024-02-01 22:23:00.448 T:86083   error <general>: Cheevos: Couldn't load patch file
2024-02-01 22:23:00.564 T:109173    info <general>: RetroPlayer[RENDER]: Configuring format 0RGB32, nominal 320x240, max 700x576
2024-02-01 22:23:00.564 T:109173    info <general>: RetroPlayer[AUDIO]: Creating audio stream, format = AE_FMT_S16NE, sample rate = 44100, channels = 2
2024-02-01 22:23:00.575 T:86083    info <general>: RetroPlayer[RENDER]: Renderer configured on first frame
2024-02-01 22:23:10.481 T:109213   error <general>: Cheevos: Rich Presence script was not found
2024-02-01 22:23:20.528 T:109280   error <general>: Cheevos: Rich Presence script was not found

Your Environment

Used Operating system:

Operating system version/name: Arch Linux

Kodi version (from Arch repo):

rimeno commented 9 months ago

I just rebuild the addon with newer version, I will test tonight.

New version to test: kodi-addon-game-libretro-beetle-psx 0.9.44.61-1

How can I help with a more verbose debug log ? I have this package installed: kodi-addon-game-libretro-beetle-psx-debug 0.9.44.61-1

garbear commented 9 months ago

Logically "acceleration" would make a core faster. Try version 0.9.44.61, but it's likely that without acceleration you'll need a really fast computer. Hardware acceleration means OpenGL support, which RetroArch has but Kodi doesn't yet.

How can I help with a more verbose debug log?

Enable debug logging. See: https://kodi.wiki/view/Log_file

garbear commented 9 months ago

@rimeno I just remembered that we have rewind functionality which could be slowing down the game a bunch. Can you try disabling realtime rewind? Settings -> Games

rimeno commented 9 months ago

@rimeno I just remembered that we have rewind functionality which could be slowing down the game a bunch. Can you try disabling realtime rewind? Settings -> Games

Perfect, with realtime rewind disabled, I can play fluently ! Thank's

garbear commented 9 months ago

I come to the rescue! A good solution would be to detect missed frames, and automatically disable real-time rewind.

Until I'm able to implement this, we can use some good ol' SEO magic.

Fix games running slow in Kodi.

When the big G picks this up, it'll show automatically show To fix games running slow in Kodi, disable real-time rewind. This can be done from Game Settings. directly on the search page.