Open andrewfader opened 2 years ago
Can you give us some feedback about high cpu usage with something like
while true; do echo -n "RetroArch ";ps -p `pidof retroarch` -o %cpu,%mem ; sleep 5; done
or
watch ps -p `pidof retroarch` -o %cpu,%mem
Thank you.
❯ while true; do echo -n "RetroArch ";ps -p `pidof retroarch` -o %cpu,%mem ; sleep 5; done
RetroArch %CPU %MEM
57.3 0.6
RetroArch %CPU %MEM
40.8 0.6
RetroArch %CPU %MEM
41.2 0.7
RetroArch %CPU %MEM
196 2.8
RetroArch %CPU %MEM
442 2.8
RetroArch %CPU %MEM
572 2.8
RetroArch %CPU %MEM
656 2.8
RetroArch %CPU %MEM
718 2.9
RetroArch %CPU %MEM
763 2.8
RetroArch %CPU %MEM
808 2.8
RetroArch %CPU %MEM
836 2.9
RetroArch %CPU %MEM
861 2.8
RetroArch %CPU %MEM
869 2.8
RetroArch %CPU %MEM
880 2.8
RetroArch %CPU %MEM
894 2.8
RetroArch %CPU %MEM
909 2.8
RetroArch %CPU %MEM
917 2.9
RetroArch %CPU %MEM
923 2.8
RetroArch %CPU %MEM
931 2.8
RetroArch %CPU %MEM
941 2.8
RetroArch %CPU %MEM
949 2.8
RetroArch %CPU %MEM
957 2.8
RetroArch %CPU %MEM
963 2.8
RetroArch %CPU %MEM
970 2.8
RetroArch %CPU %MEM
975 2.8
RetroArch %CPU %MEM
976 2.8
RetroArch %CPU %MEM
975 2.8
RetroArch %CPU %MEM
981 2.8
RetroArch %CPU %MEM
986 2.8
RetroArch %CPU %MEM
991 2.8
RetroArch %CPU %MEM
995 2.8
RetroArch %CPU %MEM
998 2.8
RetroArch %CPU %MEM
1000 2.9
RetroArch %CPU %MEM
1003 2.8
RetroArch %CPU %MEM
1006 2.8
RetroArch %CPU %MEM
1007 2.8
RetroArch %CPU %MEM
1010 2.8
RetroArch %CPU %MEM
1013 2.8
@andrewfader Is still an issue with latest stable ? Thank you.
Yes, it's still reproducible with bsnes-hd beta core, but if I switch to bsnes-mercury performance, the cpu usage is acceptable (100% of one core and 10% of a 2nd) as opposed to pegging all those cores.
Using retroarch from the archlinux repos
❯ retroarch
[INFO] [Config]: Looking for config in: "/home/andrew/.config/retroarch/retroarch.cfg".
[INFO] RetroArch 1.19.1 (Git 0792144fe3)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2
[INFO] Version: 1.19.1
[INFO] Git: 0792144fe3
[INFO] Built: Jun 16 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[ERROR] Couldn't find any cloud sync driver named ""
[INFO] Available cloud sync drivers are:
[INFO] webdav
[INFO] null
[WARN] Going to default to first cloud sync driver...
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 59.95, Sample rate: 48000.00 Hz.
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Set video size to: 960x720.
[INFO] [Wayland]: Compositor doesn't support zxdg_decoration_manager_v1 protocol
[INFO] [Wayland]: fractional_scale_v1 enabled
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[INFO] [Vulkan]: Found vulkan context: "vk_wayland".
[INFO] [Vulkan]: Detecting screen resolution: 3840x2160.
[INFO] [Vulkan]: Found GPU at index 0: "NVIDIA GeForce RTX 2060".
[INFO] [Vulkan]: Using GPU index 0.
[INFO] [Vulkan]: Using fences for WSI acquire.
[INFO] [Vulkan]: Using GPU: "NVIDIA GeForce RTX 2060".
[INFO] [Vulkan]: Queue family 0 supports 16 sub-queues.
[INFO] [Vulkan]: Got 3 swapchain images.
[INFO] [Vulkan]: Using resolution 1680x1260.
[INFO] [Vulkan]: Using RGB565 format.
[INFO] [Vulkan]: Loading stock shader.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Wayland]: Enabling idle inhibitor
[INFO] [Video]: Found display server: "null".
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Audio]: Started synchronous audio driver.
[INFO] [ALSA] Using ALSA version 1.2.12
[INFO] [Microphone]: Initialized microphone driver.
[INFO] [Display]: Found display driver: "vulkan".
[INFO] [Playlist]: Loading history file: "/home/andrew/.config/retroarch/content_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/andrew/.config/retroarch/content_music_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/andrew/.config/retroarch/content_video_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/andrew/.config/retroarch/content_image_history.lpl".
[INFO] [Playlist]: Loading favorites file: "/home/andrew/.config/retroarch/content_favorites.lpl".
[INFO] [PulseAudio]: Pausing.
[INFO] [Environ]: SET_SUBSYSTEM_INFO.
[INFO] [Core]: Using content: "/home/andrew/Downloads/Donkey Kong Country 3 - Dixie Kong's Double Trouble! (USA) (En,Fr).sfc".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] RetroArch 1.19.1 (Git 0792144fe3)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2
[INFO] Version: 1.19.1
[INFO] Git: 0792144fe3
[INFO] Built: Jun 16 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[ERROR] Couldn't find any cloud sync driver named ""
[INFO] Available cloud sync drivers are:
[INFO] webdav
[INFO] null
[WARN] Going to default to first cloud sync driver...
[INFO] [Core]: Loading dynamic libretro core from: "/home/andrew/.config/retroarch/cores/bsnes_hd_beta_libretro.so"
[INFO] [Overrides]: Core-specific overrides found at "/home/andrew/.config/retroarch/config/bsnes-hd beta/bsnes-hd beta.cfg".
(retroarch:35764): Gtk-WARNING **: 17:39:28.434: gtk_disable_setlocale() must be called before gtk_init()
So I have it recognizing
vk_wayland
but when I load a game I have high cpu usage like it's not using the gpu for vulkan rendering. Using the bsnes hd core.Same problem with
glcore