VOGONS

Common searches


First post, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

List your OS
List your Service Pack Level.
List your video card
List your what version video drivers you are currently using.

Tired of seeing people who have to use Windib. Mabye if we can get a sizeable amount of posting's some brilliant individual who is experienced with SDL can fix it.

How To Ask Questions The Smart Way
Make your games work offline

Reply 2 of 14, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

From searching those threads so far....

It's the craptacular S3/ATI Rage series! You win S3/ATI!:

S3 Savage 4
ATI Rage series of graphics cards

Since DosBox is set to Surface as default, it's odd that Dosbox has to use WinDib for these chipsets.. I'd understand if DosBox was set to Overlay,OGL,Direct3D....but surface? WTF.

Anyone with these chipsets know if the latest drivers fix this SDL issue? If so then it's be an easy "fix" to add to the DosBox readme for people to upgrade to the latest drivers for those chipsets. Since these video cards are so old we would probably should specify working driver versions....this is assuming that an updated driver fixes the issue.

How To Ask Questions The Smart Way
Make your games work offline

Reply 4 of 14, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie
DosFreak wrote:

Since DosBox is set to Surface as default, it's odd that Dosbox has to use WinDib for these chipsets.. I'd understand if DosBox was set to Overlay,OGL,Direct3D....but surface? WTF.

SDL_VIDEODRIVER=windib only has an effect with surface, nowhere else (because SDL video is (mostly) bypassed in all other modes). It's just that dosbox comes with a custom build of SDL.DLL that has DirectX surfaces enabled, while a default build has not (guess why...). Another fix would be to provide a non-DirectX-enabled SDL.DLL, it would always use windib.

Reply 5 of 14, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

Hmm, so SDL supports neither DirectX hardware accelerated 2D surfaces nor hardware overlay out of the box? I'm not too impressed with this aspect SDL's graphics capabilities in the context of modern 2D game applications. I can't fault them for it though, as I'm sure their main goal was maximum compatability across a maximum number of platforms.

Reply 6 of 14, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

I suppose the Windib enabled SDL could be included by default instead of the way it is now. Any downsides to doing this?

How To Ask Questions The Smart Way
Make your games work offline

Reply 7 of 14, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

I suppose using WinDib is slower but, if SDL is not using WinDib nor DirectX hardware accelerated 2D surfaces nor hardware overlay (as stated by HunterZ), what the hell is using?

PS - By the way, I am getting this nasty error message on my ATi card while using both SDL 1.2.8.0 and 1.2.9.0 - What gives?

Attachments

  • Filename
    SDLerror.png
    File size
    6.89 KiB
    Downloads
    379 downloads
    File license
    Fair use/fair dealing exception

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 8 of 14, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

DosFreak: It's a tradeoff between compatability and performance. By using DirectDraw for surface mode, Qbix (and I agree with him) is probably gambling that people with systems hefty enough to run DOSBox will have fairly modern video cards with decent DirectX support running at 16- or 32-bit color. The hope is probably that DirectX will then take advantage of 2D hardware-acceleration features of the card and thus improve rendering speed.

el_pusher: SDL can be configured (hacked, actually, as it involves enabling disabled code) to use DirectX/DirectDraw for 2D surfaces, as Qbix does for DOSBox releases. According to Moe, If you don't do this it will apparently use "windib" mode instead.

Reply 9 of 14, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

HunterZ: Thanks for the clarification. 😎

PS - It seems I overwrote SDL.DLL - After reinstalling DOSBox everything is working fine. Thanks.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 10 of 14, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie
HunterZ wrote:

Hmm, so SDL supports neither DirectX hardware accelerated 2D surfaces nor hardware overlay out of the box? I'm not too impressed with this aspect SDL's graphics capabilities in the context of modern 2D game applications. I can't fault them for it though, as I'm sure their main goal was maximum compatability across a maximum number of platforms.

Well, I was ignoring YUV overlays for the moment. Those are unrelated to windib/directx as well. That functionality is related to full-motion video, thus different APIs are used.
And saying "no DX support out-of-the-box" isn't entirely fair: the code is present, it just has issues (as we can see).

Reply 11 of 14, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

Yeah, sorry for throwing the overlay thing into the mix. It's a bit off-topic, but I couldn't help mentioning it as a related annoyance. It pretty much makes "overlay" output mode in DOSBox useless from what I can tell. I wish I knew how to rectify it.

Even if the code is in there, it's disabled by default. By "out-of-the-box" I meant a clean compile of CVS or release code without source hacks, which is probably how they compile the release version DLLs on libsdl.org.

Reply 12 of 14, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I coded a working fix for it.

Anyone willing to test it ? (you need to have to specify the windib parameter in 0.63)

I tested it with one person. But her video display messed up 🙁 It turned out that happened with the regular windib interface as well.

Water flows down the stream
How to ask questions the smart way!

Reply 14 of 14, by Enno

User metadata
Rank Newbie
Rank
Newbie

1. Windows 7 (6.1.7601)
2. DosBox 0.74
3. Intel HD 3000
4. BIOS 2089.11, Driver Version 9.17.10.4229

My reason for using windib is not graphics, but keyboard. When I run without windib, my backslash and right shift keys don't work, and a couple of others are in the wrong place (aquare brackets, for one). I have a US keyboard (tenkeyless cooler master CMStorm).