-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Implement instant-launch #139
Comments
I like this idea :) Some notes: Video mode concernRight now, when a command or path is passed to DOSBox, it does a bit more than simply run the command - following sequence is injected into autoexec:
Because of this, it might be hard or impractical to go straight to video mode, that the game requested. Also, some execs might not request changing videomode at all and expect to stay in the current text mode (whatever it is 80x25, 80x50, or some different one). (Norton Commander is an example of such program). Maybe we can figure it out somehow. User option or CLI flagsI think user should have a bit more control over the splash screen; right now, the splash screen is hardcoded (I think it's because of companies distributing DOS games with bundled dosbox?) - but in many, many contexts it does not make sense to show it, even when starting simple terminal window (my terminal emulator does not show splash screen on each start - I would go insane if it did). Maybe we should add a user setting BannerBlue banner on DOSBox start is a separate concern. I really don't like it - it contains too much information, so in the result users don't read it. In instant-launch mode we could simply add cls after switching to C: to avoid showing it. Personally, I would like remove this banner and replace it with better tutorial on dosbox usage than 'intro', and have a user option to not show it at all and start with a clean prompt (like a modern terminal emulator would do). My point here: I suggest banner to be taken out of this feature and treated as a separate topic. |
Great suggestions @dreamer ; The additional of the splash screen flag and conf option are nice touches, especially with 'auto' being the default. I also agree the info/help banner should simply be removed; but for this feature it will be hidden/skipped in instant-launch mode. So it makes sense to tackle interactive-mode's help-banner under a separate feature. |
That's the consensus:
"Unscrupulous vendors packaging DOSBox without giving credit". The logic goes that by forcing the splash-screen into the users' experience, the nefarious vendor is foiled. However, neither selling DOSBox nor displaying a splash screen are GPL violations. https://www.gnu.org/philosophy/selling.en.html
And similarly, there is no discussion of banners or splash screens in the license terms. Leaving the license aside, does the use of an always-enabled splash screen fit with general practices? No. Otherwise DOSBox users would sit through splash-screens for ALSA, Timidity, Munt, Ogg Vorbis, and SDL; even before DOSBox displays its own splash screen. DosFreak's response to a user requesting a way to disable the splash-screen clearly shows there is demand for such a feature from the users:
|
I do believe all credit is due to the DOSBox authors, and fighting plagiarism and copyright violation is a worthy and noble cause; however that war is best played out with lawyers filing lawsuits resulting in the transference of money from the violating parties. If the battle against unscrupulous vendors is going to be played out on the splash-screen, then it should inform and arm the user with procedures on how to report bad vendors if purchased a "pirate DOSBox device" on ebay, amazon, or AliExpress. |
To try out instant launch, run your executable or batch file strait-away on dosbox's command-line: ie: The default banner mode is Builds to try: |
Calling for testing help! Configuration option is as shown; set that to Note that it defaults to to the present behavior Source is on branch: |
I like this solution very much; experienced users will just change it to So far I tested it on Gnome 3 + XWayland + Intel + OpenGL - works beautifully. Gnome 3 + pure Wayland - there are some bugs, but all I've seen are not regressions - just various issues we have in master. Unfortunately, I don't have access to multiple displays at the moment, but tomorrow I'll attach it to the TV and do some testing this way and test some other DEs. |
Thanks for the help in getting this one off our list @dreamer ! Rounding up latest tests on my side too. |
In windowed-mode on Windows 10, the desktop's fade-effect start with a white SDL canvas before getting underway. Stability is good though, and works fine on all the output and texture_rendering modes. Fullscreen on Windows 10 is nice; goes straight in without the white background. Given the PR is very minimal and doesn't touch the SDL code, maybe a follow on PR is best to tacle this window-mode white background? (Linux doesn't suffer from that though.. it's pretty darn instant on Linux). My ultimate goal is to also hide or eliminate the first console-sized graphical mode change, and so there's only a single SDL mode set:
But right now there are still two, the first for the console (which on Linux tends to disappear very quick), but on Windows it's still visible for a fraction of a second. |
Whoah.. just for fun I hooked the boolean into WriteOutput, and it's essentially a
The first SDL window is the game's window! No pre-console that flashes by..
|
Instant-launch would take place when DOSBox is started with an executable (
.bat
,.com
, or.exe
) on its command-line. ie:dosbox rungame.bat
Instant-launch would:
If no executable is provided, DOSBox would start in interactive-mode, per its existing behavior:
Motivations for instant-launch are:
Please vote with a 👍 or 👎
(nothing personal here: this is simply an idea that we can kill or run with!)
The text was updated successfully, but these errors were encountered: