VOGONS


First post, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

As discussed in the #dosbox IRC channel.

This fixes the memory leak h-a-l-9000 experienced on SDL_SetVideoMode.

Reply 1 of 7, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

could you elaborate just a bit? And does this patch SDL or Dosbox? And anyway, can a mod move it to the patches forum, so I can find it again, when the need arises? 😀

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 7, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Patch is againsd sdl, we're using a path that the sdl people don't care about
(directx backend with fast rendering).

Reply 3 of 7, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

Since the SDL people aren't likely to respond any time soon, attached is an updated DLL file that incorporates the fix (as well as the regular DOSBox-specific changes).

Reply 4 of 7, by Good Ol' TarviS

User metadata
Rank Newbie
Rank
Newbie

I'm sorry about bumping this, but why is this not included in more recent builds (namely those with direct3d output support?) Changing modes is nearly instant with this SDL.DLL compared with the stock one in ykhwong's build. At least I've noticed this is System Shock, which goes back to 320x200 whenever the main menu or map is brought up.

Reply 5 of 7, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Please post reports ONLY against the latest official release.

Reply 6 of 7, by Good Ol' TarviS

User metadata
Rank Newbie
Rank
Newbie

There are no improvements for DOSBOX 0.74 using this DLL. OpenGL and OpenGLNB still have considerable delays when changing modes.

Still, I feel it is significant that it greatly improves performance of the Direct3D9 patch.

Reply 7 of 7, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

This has nothing to do with the speed of mode switching. All it does is fix one memory leak when using DirectDraw. It does absolutely nothing with OpenGL. Any improvements in speed are purely coincidental except in edge cases and are much more likely due to your graphics card driver. This is not a performance patch. It is a memory bugfix.

My site: Ramblings on mostly tech stuff.