joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

Its possible to run Dos 3dfx in bigger window or fullscreen? #3232

Open ruthan opened 2 years ago

ruthan commented 2 years ago

Code of Conduct & Contributing Guidelines

Have you checked that no other similar question(s) already exists?

Question

Hello, im trying to play Battle Arena Toshiden in Dosbox-X in Dos, its 3dfx mode is "working", better than i old Gulikoza Dosbox and Ynkong. build.. there not glitches, but..

If enable Voodoo emulation and OpenGL output on WIndows 10 - nvidia 1070, Its running in not resizable 640x480 tiny window which i on my 27 inch 1440p screen very small and it could get even worse on some high DPI laptops.. I read there are similar problem with Win9x machines. Fullscreen toggle does nothing - maybe should be disabled, but i try to switch to other outputs its the same, one 3dfx mode is initialized.

If Fullscreen is problem, some simple pixel multiplication (2x,3x,4x,5x) from 640x480 to 1280x960,1920x1440, 2560x1920, 3220x2400 windows would make it usable, otherwise very hard to play something in 3dfx mode.

grapeli commented 2 years ago

@Wengier Great applause. I no longer need to scale the screen so that 3DFx games under DOSBox-X take up the entire screen (1366x768). xrandr --output LVDS1 --scale 0.625x0.625 && dosbox-x -set autolock=true -set showmenu=false -set windowposition=107,0 -set char9=false -c "mount c ./ScrmRal" -c "imgmount d ./cd/srally.cue -t cdrom" -c "c:" -c "cd SR" -c "STRT3FX.EXE" 2>/dev/null && xrandr --output LVDS1 --scale 1x1 || xrandr --output LVDS1 --scale 1x1

ruthan commented 2 years ago

Ok but this only for Linux...

grapeli commented 2 years ago

Well, I just wrote that I do not have to use these workarounds anymore.

The dosbox-x window is scalable with this code change - Resizable Voodoo OpenGL window. Certainly, also under the windows.

kjliew commented 2 years ago

I believe the credits for upscaling Kekko's Voodoo chip emulation should include @MartyShepard who made the 1st adaptation for upscaling that I know of. Even Kekko himself didn't return to improve in this aspect of 3Dfx emulation. In retrospective, the patch was created more than 10 years ago when high DPI was never a thing for most. It is just filthy rich folks' dilemma with interests in 3Dfx Retro Games after all. 🤣

It feels great to relive the magics of 3Dfx in PC Games. Well Done, DOSBox-X!

@ruthan Your summoning spell is great indeed. Perhaps you could summon "the other camp" to look into virtualization for the rebirth as PCvm.🤣

Wengier commented 2 years ago

@kjliew Thanks for informing us about @MartyShepard's contributions in the Voodoo chip emulation. I have added MartyShepard's name in the CHANGELOG entry in my new PR. Great to see contributions to the emulation from different people.

ajalberd commented 2 years ago

I am also having the same issue as the OP. Cannot resize window with 3dfx emulation either in software,opengl, or auto, and changing output type also doesn't help.

The documentation is a bit vague:

The "auto" option means it will try to use OpenGL if possible, and otherwise fallback to software rendering. Note | This emulation mode does not work in fullscreen mode.

Which mode do they mean, auto/opengl, or software?

Windows 10 32-bit SDL1.