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

Delay when loading videos #677

Open ghost opened 3 years ago

ghost commented 3 years ago

local bg = fe.add_image( FeConfigDirectory+"gtc-common/videos/bkg_anim.mp4", 0, 0, flw, flh ); Doesn't produce the same result in daily build as in stable release. In daily build there is a delay effect when loading the video, resulting in split second black screen. Very visible when navigating left/right between systems.

A similar issue occurs when navigating between games - I use a static video beneath the game snap videos so it is shown when a game snap is not available. In the daily build you can see the static when I navigate the games wheel which doesn't happen in the stable build.

Adding "fe.image_cache.bg_load = true" to the layout.nut script doesn't help.

Here is a video comparing the stable release (v2.6.1) to the daily build, showing the issues: https://youtu.be/vHEMUAn_u3w

mickelson commented 3 years ago

Does it happen as well when you set

fe.image_cache.bg_load = false

??

On Mar 24, 2021, at 2:43 AM, Yaron2019 @.***> wrote:

fe.image_cache.bg_load = true

ghost commented 3 years ago

Yes, just tested it.

ghost commented 3 years ago

Apparently, it seems video preloading was moved into a separate thread but first you initialize the texture container which stays black until 1st frame is decoded.

I hope it helps solve this issue.

mickelson commented 3 years ago

yes this makes sense, I know what the issue is. thanks

On Apr 11, 2021, at 1:16 AM, Yaron2019 @.***> wrote:

 Apparently, it seems video preloading was moved into a separate thread but first you initialize the texture container which stays black until 1st frame is decoded.

I hope it helps solve this issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.