Author Topic: RetroFE on slow storage media  (Read 314 times)

walknight

  • Newbie
  • *
  • Posts: 24
  • Karma: +4/-0
    • View Profile
RetroFE on slow storage media
« on: April 09, 2020, 04:12:42 AM »
So I finally got RetroFE working off a USB drive connected through a USB 2.0 port. That's the only way to add external storage to this cab.

Due to the slow media, a game play video can take half a second to load. During this time, the scrolling wheel is non-responsive.
This creates a rather unsmooth user experience. On the other hand, if the user stops scrolling and waits to see the video, the half-second load time is totally acceptable.
It only becomes annoying in this scenario:
- User scrolls one time then pauses
- Video starts to load
- User decides to scroll more --- non-responsive until video loads.

I guess this is because opening a video is a blocking operation in current event loop. If that operation can be moved to a separate thread, such that UI rendering and other operations become fully asynchronous, it will make a much better experience on these systems with slow storage media.

Not sure how difficult to implement, just want to throw out the idea there for your consideration.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1274
  • Karma: +27/-1
    • View Profile
    • Towel 42
Re: RetroFE on slow storage media
« Reply #1 on: April 13, 2020, 10:17:56 AM »
The problem with this idea is that it could seriously impact animations, not to mention additional stops. If the loading of the video is split off to a separate thread, that thread needs to be cancelled somehow if the loading takes longer than the next selection.

walknight

  • Newbie
  • *
  • Posts: 24
  • Karma: +4/-0
    • View Profile
Re: RetroFE on slow storage media
« Reply #2 on: April 21, 2020, 04:05:57 PM »
Thanks Pieter. I guess you get what I wanted to achieve. When time allows I'll give it more thought.

The SPY

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: RetroFE on slow storage media
« Reply #3 on: May 14, 2020, 09:59:54 PM »
that must be really slow drive, I have my whole RetroFE artwork and also emulator rom stored on a NAS and connecting to it via Wifi and don't see any slow down on the menu, except when it doesn't find any media for the rom, it does pause a little while it must be trying to locate everything required etc

Lowspecs

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-3
    • View Profile
Re: RetroFE on slow storage media
« Reply #4 on: July 31, 2020, 11:54:29 AM »
Same problem here with an USB 3 drive = while load a video, there's a time with no response... it make the user feel that it's slow.