dgVoodoo 2 for DirectX 11

General information and assistance with dgVoodoo.

Re: dgVoodoo 2 for DirectX 11

Postby Loney974 » 2017-9-24 @ 08:23

Regarding refresh bug in Commandos 2:

Loney974 wrote:I'm encountering another issue regarding windowed mode. I've noticed that when switching to windowed mode (ALT-ENTER), the game does not refresh properly (cf. screenshot). More precisely, I have to move the mouse cursor to "reveal" the menu or the game map, square by square.
I believe it has to do with desktop composition (DWM) somehow, because applying the following compatibility mode fixes the issue, at the cost of reduced performance :
a) [Windows 7] "Disable desktop composition"
b) [Windows 8/10] "Reduced color mode" => 16 bits mode.

Image

Dege wrote:Sorry, I forgot about this: I was going to try it myself but the game always crashed for me for some reason, I should reinstall it.
Anyway, since updating the window area is totally in the hands of DX11 (DXGI), I hardly thinks its a dgVoodoo bug. My tip it's caused by the compat mode.

Osprey wrote:I can confirm that behavior with Commandos 2 in v2.54 and WIP36. It doesn't happen when the game is run without any wrapper and it doesn't happen with aqrit's wrapper, so it's definitely dgVoodoo. I've tried changing nearly every setting in dgVoodooCpl.exe, so it doesn't appear to be correctable with any setting.

Dege, applying a compatibility mode is a workaround for windowed mode to work properly, otherwise the game works fine natively with dgvoodoo2 in fullscreen mode. As Osprey said, since there isn't any bug when the game is run without any wrapper and it doesn't happen with aqrit's wrapper, I also believe this problem is a side effect of dgvoodoo2.
By the way, my tests are based on the GOG version of Commandos 2 + dgVoodoo 2.54/WIP37, installed on Windows 10 and powered by an Nvidia GPU (GTX 1060). Should you need more information to dig in, feel free to let me know.
Thanks for your help.
Loney974
Newbie
 
Posts: 2
Joined: 2017-9-02 @ 23:44

Re: dgVoodoo 2 for DirectX 11

Postby CoolGamer » 2017-10-05 @ 12:50

Dege, please take a look at "Star Wars Rebel Assault 2" windows version when you have the time. There is no installation, just copy the contents of the first CD to a folder on your harddisk. Game executable RA2START.EXE calls DSETUP.DLL which in turn tries to access a missing procedure entry point in Kernel32.dll named SUnMapLS_IP_EBP_12. Apparently this deprecated procedure entry point only existed in windows95/98's kernel32.dll, and no longer exists in Windows 7 and up. As a result, the game crashes before it loads ddraw.dll. If you can patch the game executable, we should be able to enjoy this game through dgVoodoo. Game executable size is only 140kb, so hopefully it shouldn't be a big deal to reverse engineer it for you. :happy:
CoolGamer
Newbie
 
Posts: 66
Joined: 2017-1-14 @ 17:22

Re: dgVoodoo 2 for DirectX 11

Postby Dege » 2017-10-09 @ 13:58

Isn't there an old Kernel32 to new Kernel32 instead? :D :D :D

Short report: OK, I'll do a run on game-specific issues, but currently I'm working on the debug layer for the spec release version and want to finish it before doing that. :)
Dege
Oldbie
 
Posts: 954
Joined: 2003-9-04 @ 11:06

Re: dgVoodoo 2 for DirectX 11

Postby CoolGamer » 2017-10-10 @ 13:48

Dege wrote:Isn't there an old Kernel32 to new Kernel32 instead? :D :D :D


LOL. I laughed so hard when I read that.

I look forward to the next WIP with the debug layer, new features and game specific bug fixes. The order of development is up to you.

Is it possible to add Super Sample Anti Aliasing (SSAA) to dgVoodoo? I saw SSAA in the 2013 game named "The Cave" (steam version) and it looks really very good. SSAA was added to the game through one of the later game updates and was called "super high quality anti-aliasing" method in the change-log.

Wikipedia says that SSAA was the earliest, easiest and best looking form of antialiasing used by early graphics cards but was later dumped by gpu manufacturers due to high computation cost required relative to MSAA. Is it easy to add SSAA to dgVoodoo?
CoolGamer
Newbie
 
Posts: 66
Joined: 2017-1-14 @ 17:22

Re: dgVoodoo 2 for DirectX 11

Postby lowenz » 2017-10-10 @ 22:02

SSAA is a "twin" method of AA-through-downsampling.
lowenz
Oldbie
 
Posts: 779
Joined: 2014-12-20 @ 01:30

Re: dgVoodoo 2 for DirectX 11

Postby galneon » 2017-10-11 @ 04:31

CoolGamer wrote:Wikipedia says that SSAA was the earliest, easiest and best looking form of antialiasing used by early graphics cards but was later dumped by gpu manufacturers due to high computation cost required relative to MSAA.


Not actually true--it's just not as exposed as it used to be. For example, I think the Nvidia cpl only offers MSAA now. If you use Inspector, however, you can select up to 4x4, or combined SS + MS modes. I haven't had an AMD card in a long time so I don't know if the cpl there exposes it anymore, but I'd be shocked if it couldn't still be forced through some means. There's also DSR and the AMD equivalent which offer non-integer-locked downsampling--similar result if you select an integer multiplier and whatever the magical number on the sharpness slider is.

Main reason anti-aliasing quality took a dip was the prominence of deferred rendering engines (think Far Cry 1) where you couldn't enable proper anti-aliasing at the same time as HDR, or not without forcing it in a way that causes glitches. Then came garbage like FSAA which was popular because of how light the performance impact was...

Supersampling through driver settings is still there for those who want to use it in a supporting D3D-based engine. Load up an older D3D8 or 9 game that runs well native, force 2x2 or 4x4 through Inspector or the AMD equivalent, and spoil the hell out of yourself. Newer games sometimes have a supersampling slider which effectively does the same thing--Shadow of Mordor and The Vanishing of Ethan Carter to name two I've played. The Witcher 2 has an infamously performance-intensive version as well (my GTX 970 couldn't handle it beyond 35-40 FPS).
galneon
Newbie
 
Posts: 46
Joined: 2004-4-15 @ 19:31

Re: dgVoodoo 2 for DirectX 11

Postby CoolGamer » 2017-10-14 @ 14:13

I saw SSAA for the first time in the game "The Cave", and it looked really good. That's why I requested it. :) But only if it is easy to implement for Dege.

I looked at the Nvidia control panel and I don't have SSAA. I only have regular (MSAA) and CSAA. I do have the AntiAliasing Transparency options with "2x-8x supersample" options. I don't know if combining MSAA or CSAA + AntiAliasing Transparency is identical to the SSAA algorithm or not.

Keep in mind that we will get TXAA when Dege implements Nvidia Gameworks DLLs usage into dgVoodoo :) . TXAA is supposed to be the absolute best at a reasonable performance hit, based on Nvidia marketing materials. But, GameWorks DLL integration will probably take a while. For now we need to settle with MSAA (and maybe SSAA if it is easy). :)


On a seperate note, I have a question regarding the new debug layer:
Dege, when the debug layer is ready, will the debug logs help you to resolve issues that you were not able to replicate on your machine? As you might remember, "Evil Dead Hail to The King" worked on your machine but it did not work on mine. Also Star Wars Racer worked on some computers (like mine) only when fast vid memory access was enabled, but it worked fine on yours without fast vid memory access. Please keep those issues in mind as you develop the debug layer.

I also have a bug report. LucasArts Adventure Pack Games (Steam Versions) do not work via dgVoodoo. These are Indiana Jones Fate of Atlantis, Indiana Jones The Last Crusade, The Loom and The Dig. Please note that the Steam versions of these games are the native windows ports made by LucasArts in 2004. They all use ddraw.dll. Games work fine natively. They crash to windows without an error when I try to play them via dgVoodoo. I am sure that it is a simple bug.
CoolGamer
Newbie
 
Posts: 66
Joined: 2017-1-14 @ 17:22

Re: dgVoodoo 2 for DirectX 11

Postby franpa » 2017-10-14 @ 18:16

SuperSample AntiAliasing is SSAA.
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gainward Geforce 560 Ti 2048MB PCI-E | Windows 10 Pro x64.

my website
franpa
Oldbie
 
Posts: 642
Joined: 2006-4-02 @ 06:26
Location: Queensland, Australia

Re: dgVoodoo 2 for DirectX 11

Postby galneon » 2017-10-15 @ 16:24

CoolGamer wrote:I looked at the Nvidia control panel and I don't have SSAA. I only have regular (MSAA) and CSAA. I do have the AntiAliasing Transparency options with "2x-8x supersample" options. I don't know if combining MSAA or CSAA + AntiAliasing Transparency is identical to the SSAA algorithm or not.


Just to be perfectly clear, SSAA support is still there--it just isn't exposed through the control panel. Nvidia Profile Inspector is necessary to enable it. It exposes all (known) hidden driver settings for per-game or global overrides.

galneon wrote:Supersampling through driver settings is still there for those who want to use it in a supporting D3D-based engine. Load up an older D3D8 or 9 game that runs well native, force 2x2 or 4x4 through Inspector or the AMD equivalent, and spoil the hell out of yourself.
galneon
Newbie
 
Posts: 46
Joined: 2004-4-15 @ 19:31

Re: dgVoodoo 2 for DirectX 11

Postby Staniol » 2017-10-15 @ 19:02

Hi All,
just one short question, is it possible to use only the Dx7 wrapper part and bypass the DDRAW?
Janes FA-18 has a strange way of handling the 2d menu, but 3d works perfectly with dgvoodoo2.
Without DgVoodoo, menu works perfectly, but 3d doesn't start, game is throwing an exception when entering the 3d world.
I hope its not a stupid question, but if it is, I will at least know it. :D
Thanks in advance.
Staniol
Newbie
 
Posts: 1
Joined: 2017-10-15 @ 18:55
Location: Hungary

Previous

Return to dgVoodoo General

Who is online

Users browsing this forum: No registered users and 1 guest