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

How does "Direct3D8DisableMaximizedWindowedModeShim" work? #125

Closed
bugreport1 opened this issue Jul 14, 2016 · 9 comments
Closed

How does "Direct3D8DisableMaximizedWindowedModeShim" work? #125

bugreport1 opened this issue Jul 14, 2016 · 9 comments

Comments

@bugreport1
Copy link

Hello, I was wondering how "Direct3D8DisableMaximizedWindowedModeShim" works, as I'd like to apply it to other games which may not be supported by your widescreen hacks.

Is this forcing a specific application compatibility mode in Windows 10?
For example, with pre-DX8 titles, setting "DXPrimaryEmulation -DisableMaxWindowedMode" fixes performance issues and will put DirectDraw applications into true Full-screen Exclusive Mode.
For me, using Microsoft's Application Compatibility Toolkit to set this is preferable to loading a hacked ddraw.dll file that accomplishes the same thing.

Is your DX8 full-screen fix doing something similar?
Thanks for all your great work in modernizing older games.

@ThirteenAG
Copy link
Owner

It simply forces Direct3D8EnableMaximizedWindowedModeShim function in d3d8.dll to return false whenever it's called.

@bugreport1
Copy link
Author

OK thanks. I was hoping that this might lead to a compatibility mode fix rather than loading dlls, but your fix seems to work perfectly in everything that I have tried so far anyway.

Can't understand why Microsoft are doing this on Windows 10, since it breaks V-Sync.

@ThirteenAG
Copy link
Owner

I heard they "fixed" it in the anniversary update, or maybe just reverted the behavior to match win8.

@bugreport1
Copy link
Author

bugreport1 commented Jul 14, 2016

I'm currently running the latest insider build.
What they "fixed" was the applications not appearing full-screen.
They still run in borderless windowed mode with an uncapped framerate, rather than full-screen exclusive mode, without your fix.

@ThirteenAG
Copy link
Owner

I see.

@bugreport1 bugreport1 reopened this Aug 24, 2016
@bugreport1
Copy link
Author

I was wondering if it might be possible for you to create a "generic" fix that would work with other games. Or if that's not possible, if you could fix this for Deus Ex: Invisible War too.

The game physics and speed run way too fast when the framerate is unlocked and there's no way to apply V-Sync without this fix on Windows 10.

@ThirteenAG
Copy link
Owner

But it's already generic. Alternatively you can set this option in d3d8-wrapper: https://bitbucket.org/ThirteenAG/d3d8-wrapper/downloads

@bugreport1
Copy link
Author

Huh, I tried copying it from another game and it just crashed Deus Ex, so I assumed they were game-specific.
I guess I missed where this "generic" fix was located, but I'm happy to report that it's working!

Once again, thank you so much for your work. It's amazing how much you've done to improve all these old games running on modern systems.

@ThirteenAG
Copy link
Owner

NP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants