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 113 forks source link

Long delay after starting or exiting a game #721

Open stevetb777 opened 2 years ago

stevetb777 commented 2 years ago

Windows 10 When I launch a game from AM there is often (let's say 35% of the time) a horrible delay of 15 seconds to a minute where the screen is black and I see the spinney blue windows (busy) circle before MAME shows up. Likewise, there is often the same very long type of delay after exiting a game waiting for AM to return (also a black screen with the spinny circle). Doesn't matter what game it is... sometimes a game will work with no delay, and other times it won't. Thanks!

OzFalcon commented 2 years ago

What happens when you run Mame from command line?

stevetb777 commented 2 years ago

When I run Mame from command line the Mame window pops up with a blurb about switchres, then the game starts full screen. I tried this about 50 times and the issue I'm having did not occur when launching Mame directly. I did notice that it takes longer for the game to start when launching Mame directly than it does when using Attract Mode (except in the case of the issue I'm having).

What happens when you run Mame from command line?

OzFalcon commented 2 years ago

Attract emulator "Non-Blocking wait mode" isn't set to a non-zero value is it? Could it have something to do with your Mame config? Sounds like Switchres is enabled. Perhaps windows is slow in switching res and other times it doesn't need to switch so it's fast....