Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Boot from DVD Backup #11456

Merged
merged 1 commit into from Jan 17, 2023
Merged

Conversation

MayImilae
Copy link
Contributor

This should be a fairly easy merge, assuming I didn’t mess anything up. TL:DR no one uses it and it’s not great.

Boot from DVD Backup is an ancient feature with origins in the Megacommit. Back then, GameCube and Wii games were quite large relative to drives of the time. For example, in 2008, the most common hard drive sizes were 320GB and 512GB. On the 320GB drive I personally had at the time, as little as 42 Wii ISOs could have filled it entirely! And that’s ignoring any other files one might want to put onto a drive. Backup DVDs allowed users to burn relatively cheap DVD media and store their GameCube and Wii dumps in a Dolphin accessible way that didn’t eat into their precious HDD space. It had compromises, even then, but in 2008… I mean honestly users probably wouldn’t even notice those compromises with how Dolphin barely even worked at all back then.

Obviously, today the storage space concerns are not as big of an issue. According to seagate the average hard drive it sells today is 8TB. For typical laptops purchased now, the -minimum- selection for storage is usually 1TB. You can even buy a name brand 4TB external hard drive for $100. GC and Wii ISOs are not as big as they once were, relatively anyway. Plus flash drives and SD cards are super cheap and way faster than disc drives ever were. For anyone that has limited drive space, removable flash media can fulfill this offloading role far better than backup DVD media ever could.

Also no one has DVD drives anymore. That’s kind of an important detail.

But to see if Booting from DVD Backup even still worked, I decided to give it a try. I have an ASUS BW-16D1HT, a badass Bluray XL reading and burning drive, connected to my Windows 11 Threadripper 5975WX machine. A super fast drive on a super fast machine is as good as it possibly can get for this feature. So I bought a spindle of DVD-Rs, burned a couple of discs and gave it a try. Surprisingly, it does still work. However, as expected, it introduces a lot of stuttering. Testing Prime 1 and Prime 3, in both games stuttering was introduced whenever the DVD Drive had to suddenly seek. Spikes of 50ms occurred constantly, but I observed 150ms and even over 1000ms stutters! The worst was a three second stutter, when loading Elysia in Prime 3. I could even hear the stutters - any time the drive suddenly made a harsh seeking noise, the game would have a hard stutter. It worked but, it has some serious compromises.

Boot from DVD Backup isn’t great, using removable flash media or external hard drives is a FAR better option for anyone with limited storage space today, and no one can even use this feature anymore because their computers don’t even have disc drives. It’s time for Boot from DVD Backup to go!

So I did my best on the cleanup but I’m bound to have left some bits. Especially in translation - I didn’t get any warnings or anything there that could help point me to where to clean that up. Please review!

This should be a fairly easy merge, assuming I didn’t mess anything up. TL:DR no one uses it and it’s not great.

Boot from DVD Backup is an ancient feature with origins in the Megacommit. Back then, GameCube and Wii games were quite large relative to drives of the time. For example, in 2008, the most common hard drive sizes were 320GB and 512GB. On the 320GB drive I personally had at the time, as little as 42 Wii ISOs could have filled it entirely! And that’s ignoring any other files one might want to put onto a drive. Backup DVDs allowed users to burn relatively cheap DVD media and store their GameCube and Wii dumps in a Dolphin accessible way that didn’t eat into their precious HDD space. It had compromises, even then, but in 2008… I mean honestly users probably wouldn’t even notice those compromises with how Dolphin barely even worked at all back then.

Obviously, today the storage space concerns are not as big of an issue. According to seagate the average hard drive it sells today is 8TB. For typical laptops purchased now, the -minimum- selection for storage is usually 1TB. You can even buy a name brand 4TB external hard drive for $100. GC and Wii ISOs are not as big as they once were, relatively anyway. Plus flash drives and SD cards are super cheap and way faster than disc drives ever were. For anyone that has limited drive space, removable flash media can fulfill this offloading role far better than backup DVD media ever could.

Also no one has DVD drives anymore. That’s kind of an important detail.

But to see if Booting from DVD Backup even still worked, I decided to give it a try. I have an ASUS BW-16D1HT, a badass Bluray XL reading and burning drive, connected to my Windows 11 Threadripper 5975WX machine. A super fast drive on a super fast machine is as good as it possibly can get for this feature. So I bought a spindle of DVD-Rs, burned a couple of discs and gave it a try. Surprisingly, it does still work. However, as expected, it introduces a lot of stuttering. Testing Prime 1 and Prime 3, in both games stuttering was introduced whenever the DVD Drive had to suddenly seek. Spikes of 50ms occurred constantly, but I observed 150ms and even over 1000ms stutters! The worst was a three second stutter, when loading Elysia in Prime 3. I could even hear the stutters - any time the drive suddenly made a harsh seeking noise, the game would have a hard stutter. It worked but, it has some serious compromises.

Boot from DVD Backup isn’t great, using removable flash media or external hard drives is a FAR better option for anyone with limited storage space today, and no one can even use this feature anymore because their computers don’t even have disc drives. It’s time for Boot from DVD Backup to go!

So I did my best on the cleanup but I’m bound to have left some bits. Especially in translation - I didn’t get any warnings or anything there that could help point me to where to clean that up. Please review!
@Zopolis4
Copy link
Contributor

Note that https://github.com/LMauricius/EmuDiscer does use this functionality, but it hasn't been updated in a while and I don't know how many people are using it.

@BhaaLseN
Copy link
Member

Since it built, you didn't miss anything that needs to be removed at least. And from a quick glance, I think you caught everything that can go away (which is mainly the DriveBlob and its usages).

What I'm not sure about is whether you should run the translation update script to get rid of the now obsolete resource, or if Transifex will take care of that. @JosJuice likely knows though.

@JosJuice
Copy link
Member

Since it built, you didn't miss anything that needs to be removed at least. And from a quick glance, I think you caught everything that can go away (which is mainly the DriveBlob and its usages).

I believe there's a function in Common for checking if something is a disc drive that's no longer used.

What I'm not sure about is whether you should run the translation update script to get rid of the now obsolete resource

No, don't change the translation files in a pull request.

@delroth delroth merged commit 686ac36 into dolphin-emu:master Jan 17, 2023
11 checks passed
@mbc07
Copy link
Contributor

mbc07 commented Jan 18, 2023

We still have open issues in the bug tracker related to this feature (e.g. issue 4564, unsure if there's more). They should probably be marked as "won't fix" now that this PR was merged...

@MayImilae MayImilae deleted the remove-boot-from-dvd branch January 18, 2023 10:03
@uVSthem
Copy link

uVSthem commented Jan 18, 2023

I'm going to miss booting from the disc drive. I still have all my old DVD-R back ups and used this feature to anytime I played a game in Dolphin. I even have Gamecube games burnt onto mini DVD-Rs! I really hope this feature comes back at some point. If there is stuttering, I never noticed it during game play.

@LMauricius
Copy link

Was this feature causing problems for anyone? I loved using dvds for my games, so removing it seems like quite an aggresive move towards old-fashioned people. I personally never experienced stuttering and I know many people who are annoyed by having to buy an external drive for their old dvds. It makes sense for laptops, but a lot of custom desktop people do ask for a dvd drive to be added (me included).

@uVSthem
Copy link

uVSthem commented Jan 18, 2023

Was this feature causing problems for anyone? I loved using dvds for my games, so removing it seems like quite an aggresive move towards old-fashioned people. I personally never experienced stuttering and I know many people who are annoyed by having to buy an external drive for their old dvds. It makes sense for laptops, but a lot of custom desktop people do ask for a dvd drive to be added (me included).

This is exactly how I feel. Was anyone complaining about the feature? Is having the option to boot off a disc drive taking away from other features or preventing new features from being added? I have all my old disc games burnt to CD-R and DVD-R. I like being able to pop the disc into a modded console and then use it in an emulator. Sega CD, PS 1 and 2, if there is an emulator that allows me to run games from disc, that is what I use. If at some point in the future, the stuttering from running off a disc can be removed, wonderful. If not, please let use few who run off a disc deal with it.

@nkeck720
Copy link

nkeck720 commented Jan 18, 2023 via email

@delroth
Copy link
Member

delroth commented Jan 18, 2023

  1. It's a confusing feature (doesn't actually work as most users expect, i.e. can't actually use an original GC/Wii disc).
  2. It's a feature we never test and that really everyone was surprised still worked. We couldn't find anyone that actively contributes to the project who used this feature in the past N years.
  3. Any feature has an invisible maintenance cost for everyone working on the project, and we continuously evaluate what to keep and what to drop based on that.
  4. I don't have any proper data to base this on, but I suspect that 95%+ of Dolphin users can't even use that feature. Nobody owns DVD/BD drives anymore, laptops don't have them, they're extremely rarely included in new gaming builds. Let's not even talk about phones, tablets, etc.
  5. If you really care about storing your games on an external media, optical discs have very little benefits compared to flash like microsd / USB mass storage. They're significantly slower, have terrible random access behavior causing stuttering, they're barely less expensive per GB or at least not at a level that matters (like, $0.1/game vs. $0.5/game isn't really a factor, and I don't even think the difference is that big), they degrade more, they get scratched, they're physically bigger, they're write-once, and with Dolphin's implementation it's not even like you could put multiple Wii games on a bluray or multiple GC games on a DVD or something like that.

TL;DR: buy some microsd cards instead and stop hurting yourselves.

@dolphin-emu dolphin-emu locked as resolved and limited conversation to collaborators Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
9 participants