mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

Image load delay on the Raspberry Pi 4 #660

Open multigamesystem opened 3 years ago

multigamesystem commented 3 years ago

Ive been noticing a new bug with the latest build of Attract Mode running on the Pi4.

With the Robospin theme image layers load in a delayed or sluggish manner when loading a layout.

Once the layout is loaded into cache it loads fine when pulled back up until the cache is reset or the system is restarted.

The images load in order according to their file size. Similar to how an old webpage would load on a slow internet connection.

Here is a video of the bug in action. https://drive.google.com/file/d/15_aRsenj4Mg1dJ12rVMAuurZFYmw_SD0/view?usp=drivesdk

oomek commented 3 years ago

Duplicate of https://github.com/mickelson/attract/issues/641

multigamesystem commented 3 years ago

Duplicate of #641

I saw that but wasn't sure if it was the same issue.

oomek commented 3 years ago

Same thing, a deferred image loading on a separate thread. if the image is not able to finish loading on the same frame it's blank until you start changing the properties of the image which forces binding of a newly loaded texture.

oomek commented 3 years ago

I've been trying to discuss with Andrew the possibility of deferring FromOldSelection transition until all images are loaded, but haven't heard back from him regarding that.

multigamesystem commented 3 years ago

I've been trying to discuss with Andrew the possibility of deferring FromOldSelection transition until all images are loaded, but haven't heard back from him regarding that.

Thank you for your quick response and efforts.