mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.3k stars 117 forks source link

Slow performance on android #937

Open klandrith opened 2 years ago

klandrith commented 2 years ago

The issue

Slow performance on android with anbernic rg552 (rk3399). Now, I realize that the rg552 is shipping with Android 7, and that may be an issue. Performance is slow on all themes except for the very minimal ones (switchOS,es2,neoretro,etc). GameOS is virtually unusable. Even on the lighter weight themes game scrolling is laggy. Performance is nowhere near as smooth as emulationstation under linux would be. Metadata files generated by skyscraper and modified with Android launch commands and file extensions reduced to only those actually used by my rom collections.

System info

Anbernic RG552. Android 7.1.2. Rockchip rk3399 4gb. 1tb SD card loaded to about 900gb. Micro SD Card is a Lexar with quoted max read of 150MB/s. Of interest is the fact that on device startup, android takes about 30 secs to check the card for file system integrity. Possibly related. Will try with a different SD card loaded with a smaller subset of roms to confirm behavior.

Pegasus version

Current stable.

Pegasus log

Will attach later.

Update

Last night I flashed an image of the stock Anbernic Linux firmware (Batocera) on an extra 32gb SD card. With emulationstation and Batocera the themes and everything work smoothly. Only exception to that is one heavy theme that lags for a few seconds when loading my FBNeo arcade collection (2100+ roms). Other than that emulationstation loads everything very quickly with no lag scrolling through games, even the ones with heavy use of video previews and such.

Also, metadata files were generated with Skyscraper and modified according to the online Android tool and documentation. I also switched on the option to not verify that files exist and simply load based on the metadata files, which boosted initial loading by a bit but didn't change in theme UI behavior. Skyscraper was set to scrape boxart, screenshots, wheels, marques, and videos when available and the artwork.xml file used by Skyscraper to generate media files was used with the recommended settings for Pegasus.

I will post the log file a bit later.

klandrith commented 2 years ago

Log from using neoretro-dark and rp switch themes. It seems that any collection over about ~200 ROMs is where it gets laggy. My GBA (900+) and FBNeo (2100+) are really laggy. Scrolling in those two collections is horrendous....

lastrun.log

uniring commented 2 years ago

I'm having the same issue, as far as a collection have more than 300 elements it begins to slowdown reaching points that it takes about 20s to start showing a large collection, and scrolling is nearly impossible, taking about 2-3s for each row to load.

If you remove all the artwork on a large collection it loads very fast and the scroll is perfect, so it looks like it has something to do with that.

I've tried three micro SD, the last one being V60, and looks like the problem is not related to the loading speed.

Mahnd commented 2 years ago

I was able to reproduce this issue easily, I tried a variety of Android Handhelds and phones of varying processing power and consistently Pegasus slows down to a crawl when the collection is larger than a few hundreds (200-300) items. Also consistently, when the 'media' folder is removed from a collection scrolling becomes fast again.

It seems that a better way to handle media with large collections is needed.

SireSalty commented 2 years ago

Have the same issue with the retroid pocket 2+, I was able to remove the lag by making multiple folders of 200-300 per collection, with metadata merging them into one large collection