fuse-libretro icon indicating copy to clipboard operation
fuse-libretro copied to clipboard

[Feature Request] M3U support

Open TiBeN opened this issue 4 years ago • 3 comments

Like in others computer emulation cores, M3U would be a great improvement. I have a bunch of multi sided tzx games i can't use because i can't switch media at runtime.

This has been already reported at #72, i don't know why this issue has been closed seens this FR has not been adressed. That's why i create a new one here.

TiBeN avatar Jan 31 '22 16:01 TiBeN

specifically 452.06 and above

Meaning https://github.com/libretro/flycast/issues/968 isn't the only regression from those recent nvida drivers ? Or are you maybe using vulkan with 4GB pixel buffer ? If so, using 2GB fixes this ?

barbudreadmon avatar Oct 22 '20 13:10 barbudreadmon

Used both Vulkan and GL, set it to any of the pixel buffer settings, as well as set it to "per strip" and "per triangle" options, and the problem still occurs

ds22x avatar Oct 22 '20 14:10 ds22x

Also crashing for me. Tried to use an older build from july 2020 and the problem persists. I recently updated Windows 10 to 20H2. Using latest nvidia drivers from 2020.10.7 with my Core i3-7130U, GeForce MX130 laptop.

I will check if the problem is present when trying with an Intel HD Graphics 610 laptop and a GTX950 desktop. Flycast settings set to default, RetroArch video driver set to glcore.

afjara avatar Oct 23 '20 19:10 afjara

Also crashing for me. Tried to use an older build from july 2020 and the problem persists. I recently updated Windows 10 to 20H2. Using latest nvidia drivers from 2020.10.7 with my Core i3-7130U, GeForce MX130 laptop.

I will check if the problem is present when trying with an Intel HD Graphics 610 laptop and a GTX950 desktop. Flycast settings set default, RetroArch video driver set to glcore.

Flycast DOES NOT crash with my Intel HD Graphics 610 laptop neither my GeForce GTX950 desktop (also updated to latest 456.71 nvidia driver). All my systems are running Windows 10 20H2, RetroArch with glcore video driver, flycast at default settings.

Only crashing system is my MX130 laptop.

afjara avatar Oct 24 '20 00:10 afjara

That's gonna be a real tough nut to crack if it only happens on certain models, my gtx960 doesn't seem to produce this crash either. We'll need some backtrace from someone with a faulty model.

nvidia seriously screwed up there...

barbudreadmon avatar Oct 24 '20 08:10 barbudreadmon

Happening to me with gtx970 aswell.

marcrobledo avatar Nov 17 '20 16:11 marcrobledo

~~Just updated the core and it's not crashing anymore after changing game!~~ Nevermind. It happened again.

marcrobledo avatar Nov 22 '20 17:11 marcrobledo

Still happens with the latest Nvidia drivers, and also happens with the most recent PCSX2 core.

ds22x avatar Dec 20 '20 13:12 ds22x

I also have the 3070 card with latest drivers and it's crashing. I will try to get a backtrace tomorrow.

Immersion95 avatar Jan 08 '21 08:01 Immersion95

Same here, GTX1080/i73770K.

Alextended avatar Jan 08 '21 10:01 Alextended

I updated to 20caf3f, and looks like it's able to swap games without crashing at last.

marcrobledo avatar Jan 09 '21 22:01 marcrobledo

Swap Dreamcast games works fine sure, but unloading Flycast is what still crashes.

ds22x avatar Jan 12 '21 17:01 ds22x

Swap Dreamcast games works fine sure, but unloading Flycast is what still crashes.

Works fine here (GTX 970).

marcrobledo avatar Jan 13 '21 15:01 marcrobledo

It took a while to figure out but I finally discovered that Flycast crashes upon exiting content if Retroarch's global video driver is set to Vulkan, it doesn't happen with gl/glcore. This happens regardless of whether Flycast's driver is set Vulkan or GL/GLcore. Flycast also crashed for me for having devreorder's dinput8.dll in the Retroarch root folder. Once I deleted dinput8.all and set Retroarch's driver to glcore it stopped crashing and terminated as expected.

voorunde avatar Mar 17 '21 20:03 voorunde

~~While the above didn't fix it for me, updating to the latest nightly of RetroArch and Nvidia's 461.92 drivers did! Works with both GL and Vulkan as well.~~

ds22x avatar Mar 17 '21 22:03 ds22x

Oh interesting, I tried voorunde suggestion, changing to glcore globally, then creating a vulkan override for the core and yeah, no crash anymore on close content. Updating to latest Nvidia drivers didn't fix it for me however.

Steps to reproduce if anyone is interested:

  • No content loaded, set video driver to glcore.
  • Restart RetroArch (or else the "fix" won't work properly).
  • Start a DC game, change driver to vulkan and create a core override.
  • Close content.
  • Launch the game again, it should be using vulkan and it shouldn't crash anymore on close content.

Another fix for me was to downgrade my Nvidia drivers to 451.48 (version mentioned by Tatsuya on Discord) using the "clean install" option or whatever it's called.

Tested by running RetroArch from MinGW, because for some weird mystical reasons if I launch RA from Windows Explorer and if I get Flycast to crash a couple times it doesn't crash anymore but I'm getting a ton of weird stuff: https://github.com/libretro/RetroArch/issues/11940

bslenul avatar Mar 18 '21 11:03 bslenul

Well apparently it only 'fixed' itself because Windows decided to add a register key that would prevent the core from unloading when RetroArch runs... Without it, it will crash on close content, regardless of video driver.

ds22x avatar Mar 19 '21 13:03 ds22x

I updated to the latest Nvidia driver from March, 30th, latest bios (which adds Resize Bar), latest Windows update and latest RA+Core nightlies from today and the issue seems to be resolved.

I'm in Vulkan globally fyi.

Immersion95 avatar Apr 03 '21 18:04 Immersion95

Have you tried loading up another Dreamcast game after closing the first one and see if the second game behaves incorrectly? Because Windows 10 likes to sometimes add a registry key when Flycast crashes too many times, which will prevent the Flycast core .dll from unloading, which 'fixes' the crashing, but introduces a whole new list of bugs, including a second Dreamcast game not loading properly, to stuff like random crashes when trying to load another core.

ds22x avatar Apr 03 '21 20:04 ds22x

Have you tried loading up another Dreamcast game after closing the first one and see if the second game behaves incorrectly? Because Windows 10 likes to sometimes add a registry key when Flycast crashes too many times, which will prevent the Flycast core .dll from unloading, which 'fixes' the crashing, but introduces a whole new list of bugs, including a second Dreamcast game not loading properly, to stuff like random crashes when trying to load another core.

Tested everything, no problem whatsoever !

Immersion95 avatar Apr 04 '21 05:04 Immersion95

Bit of a sanity check, but if you open Regedit, and navigate to [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers], do you see an entry with the data description "$IgnoreFreeLibrary<flycast_libretro.dll>"?

ds22x avatar Apr 04 '21 18:04 ds22x

Bit of a sanity check, but if you open Regedit, and navigate to [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers], do you see an entry with the data description "$IgnoreFreeLibrary<flycast_libretro.dll>"?

Nothing :).

Is the bug fixed for other people ?

Immersion95 avatar Apr 05 '21 08:04 Immersion95

I started using RA on October '20 or so, and I've always had this problem, regardless of video driver, threaded rendering setting, GPU drivers for GTX 970. Haven't tried other GPUs yet. I don't have the registry entry mentioned above. I'll be trying this out on other GPUs when possible.

akumenon avatar Apr 11 '21 01:04 akumenon

If I change RA to glcore and not customize the cores back to Vulkan, it works without issue for me. If I change Flycast itself back to Vulkan however, it appears to work as it doesn't crash when I close a game, but it will crash when I try to load another core's game. So it's basically the same thing, you could load different Flycast games before if you didn't try to close the current first.

Oh well, it's all good with glcore! At the moment at least. GTX1080/latest Win10/updated everything, drivers included.

Alextended avatar Apr 11 '21 04:04 Alextended

No idea if one of the backports fixed it or if it's really by updating the Nvidia drivers, but I don't have the issue anymore, no crash on close content, no registry key created anymore, no weird behavior on next loads, etc.

edit: downgraded both the core and RetroArch, still no issue so I guess the Nvidia drivers fixed it indeed! Thanks for the heads up @Immersion95 Also not sure if it matters but I checked the "make a clean install" box while updating drivers.

bslenul avatar Apr 14 '21 09:04 bslenul

Using latest drivers (465.89) with up to date Flycast (0.1 de6ccff) and RetroArch (1.9.1), and it still crashes on close content for me.

ds22x avatar Apr 14 '21 12:04 ds22x

Using latest drivers (465.89) with up to date Flycast (0.1 de6ccff) and RetroArch (1.9.1), and it still crashes on close content for me.

Latest RA nightlies ? Maybe it's only fixed for Ampere....

Immersion95 avatar Apr 14 '21 12:04 Immersion95

Maybe it's only fixed for Ampere....

No, I'm still using a GTX 970 and it started to work properly again today after updating Nvidia drivers. @ds22x have you checked the "clean installation" during drivers update? Like I said I checked it, but it could be completely unrelated... worth the shot I guess?

Could be something else tho, like a Windows update? 🤷

bslenul avatar Apr 14 '21 13:04 bslenul

Checked latest nightly, still crashes. Did clean install those latest drivers after first reverting back to default, still no dice. Still using a GTX 1650 and running W10 20H2.

ds22x avatar Apr 14 '21 13:04 ds22x

So weird, in my case it's clearly the drivers that fixed it, I just downgraded to 461.92 and the crashes are back, re-installed the newest 465.89 and no crash or anything weird anymore.

I also noticed there was a Geforce Experience update, are you using it? Is it up-to-date (3.22.0.32)?

And while typing this I just got a notification saying a new version for the drivers (466.11) is available :p

bslenul avatar Apr 14 '21 14:04 bslenul