Jump to content
Dragonstar

Test of various DirectX Wrappers

24 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

What a nice bundled information! Thanks for helping people out there (me included in the past)!

  • Like 4

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hiya @Dragonstar, It's a wonderful idea to have this thread where we can provide more possibilities to others, *:thumb:

On 11/7/2020 at 7:36 AM, Dragonstar said:

. If I choose my NVidia GTX 950M in the "Adapter(s) to use / enable" I get an error message when SimCity 4 is starting

May i ask all of your configurations about dgvoodoo, have you modified that two rule files? how about the settings of your Nvidia control panel? and also the details of DirectX tab, since Dege (the author) seems has the GTX 950M as well and he told me that his SC4 is ok with his comp, Thank you!:}

Sincerely,

-- Raymond

  • Like 3

What is impossible with men is possible with God…!

5d9ffb6b62888_-1.jpg.d47b771d09c95f9e7590c44cf6711098.jpg

I've contributed some to Simtropolis

My Emotion

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    @Raymond7cn
     

    Quote

    May i ask all of your configurations about dgvoodoo, have you modified that two rule files? how about the settings of your Nvidia control panel? and also the details of DirectX tab, since Dege (the author) seems has the GTX 950M as well and he told me that his SC4 is ok with his comp, Thank you!:}

    I will do it in December. I write my exam at November 25th, so I have not much time at the moment. I know, that I have chosen many settingsoptions, but either the ddraw couldn't load and SC4 started in Softwaremode or it started in hardwaremode, but with the Intel GPU and the Frames per Second were rather slow.

    But when I have more time I will investigate this further!

    • Thanks 3

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    3) DDrawCompat from narzoul

    The easiest and the fastest one. Just unzip the ddraw.dll into the folder, where the SimCity 4.exe is. No further configuration setting needed. Highly recommend. But the highest resolution I got is Full HD (1920x1080). With higher resolutions SimCity 4 won't start.

    For me it's a bit unclear if this Wrapper is in active Development. The latest version is an experimental version from 13th July 2020. The last stable version before is from 2016, so I hope there will be further development on the experimental version.

     

    *** THERE IS A NEW STABLE VERSION RELEASED 27 DAYS AGO: DDrawCompat v0.3.0  ***

    Theorically it has support for large 3D resolutions (above 2k pixels)

     

    • Like 3
    • Thanks 3

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    2 hours ago, ohdude said:

    3) DDrawCompat from narzoul

    The easiest and the fastest one. Just unzip the ddraw.dll into the folder, where the SimCity 4.exe is. No further configuration setting needed. Highly recommend. But the highest resolution I got is Full HD (1920x1080). With higher resolutions SimCity 4 won't start.

    For me it's a bit unclear if this Wrapper is in active Development. The latest version is an experimental version from 13th July 2020. The last stable version before is from 2016, so I hope there will be further development on the experimental version.

     

    *** THERE IS A NEW STABLE VERSION RELEASED 27 DAYS AGO: DDrawCompat v0.3.0  ***

    Theorically it has support for large 3D resolutions (above 2k pixels)

     

    Trying it out now, it works for me at 2560x1440 *:thumb:

    • Like 3
    • Thanks 2

    Proud member of the NAM development team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    55 minutes ago, Flann said:

    Trying it out now, it works for me at 2560x1440 *:thumb:

     

    That is good to know because i'm using SimCity 4 at 2048x1152 and it does not work well:

     

    sc4 problem.jpg

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    @Flann Does the Ddraw.dll size is 559 KB in your case?

    asdfsdf.jpg

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Hi yes, it is 559 Kb.  I think you may need to remove some of the other dlls if they are vestiges of another direct x wrapper.  I had the same issue, previously I was using the wrapper by elishacloud.  Now my folder looks like this

    image.png.ffd596705088a3b117f05ebf993dc1e2.png

    • Like 2
    • Thanks 3

    Proud member of the NAM development team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Thanks @Flann. I've done what you did and now it is working for me in 2560x1440x32. *:thumb::thumb:

    • Like 4
    • Yes 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Sorry to hijack the topic, but how is everyone getting DDrawCompat working? I've tried 0.3.0 and 0.3.1, extracted to the Apps folder. When it's there, I get a pop up saying "Could not initialize Direct Draw", then "Falling back to software rendering". The DDC log file is never created. Any ideas?

    (Note: I'm launching the game using the SimCity4Launcher. I've tried software and hardware rendering modes, and resolution is set to 1080p.)

    Note2: When using the DDC wrapper, the cardName, version, and ID are all blank in the game's config log.


      Edited by tgp1994  

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Lots of good info here, but it all went well over my head.  If the game has been working fine, is this something recommended? I tried to follow for as much as I could, but it seemed like it slowed the game down for me. It is also very likely that I missed a step or something along the way.  I guess mostly, what would I be gaining from this? 

     

    Thanks! 

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    6 hours ago, grossmanbr said:

    Lots of good info here, but it all went well over my head.  If the game has been working fine, is this something recommended? I tried to follow for as much as I could, but it seemed like it slowed the game down for me. It is also very likely that I missed a step or something along the way.  I guess mostly, what would I be gaining from this? 

     

    Thanks! 

    If you're happy with the way your game is working, then I wouldn't go through the trouble. In my case, I'd like to push the game beyond its 1920x1200 resolution limit so that's why I'm fiddling with wrappers.

    • Like 3

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
    Currently: Viewing Forums Index
     
    2 hours ago, tgp1994 said:

    If you're happy with the way your game is working, then I wouldn't go through the trouble.

    I concur. While I have read and followed this topic, I've not tried any wrapper since I'm completely happy with how my game runs and appears.

    • Like 2

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    10 hours ago, grossmanbr said:

    If the game has been working fine, is this something recommended?

    Absolutely not, it’s a compatibility layer so actually takes more toll on your system. Unless you need it to force a higher resolution or otherwise for compatibility reasons, I’d stick with running without it. 

    I did some tests before upgrading to QHD monitors and now I need a wrapper, Elisa Cloud’s DXWrapper is working well for me. But dgVoodoo2 is easier to setup and has more options which are especially useful for owners of Laptops with NVidia Optimus technology. 

    • Like 2
    • Thanks 2

    Head over to my Lot and Mod Shack to keep abreast of my latest developments.

    Do you like custom textures, but don't like all the work involved creating them?, take a look at the Texture Automation options here. Change the look and feel of your transit networks, with the minimum of effort, for example customised versions of my Sidewalk NAM (SWN) and Terrain Grass NAM (TGN) mods, and much more besides.

    New to the NAM? Check out my tutorials on YouTube. Latest upload: How to: RHW - MHO Roundabout Interchanges. (Nov 25).

    p.s. - I'm MGB over on SC4D and a member of the NAM team.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
    Currently: Viewing Forums Index
     
    21 hours ago, tgp1994 said:

    Note: I'm launching the game using the SimCity4Launcher.

    While I'm not at all familiar with wrappers, it might help to skip the Launcher during the troubleshooting phase. *;)

    (Removing that as a variable.)

    • Like 1
    • Yes 1

    Chance favors the prepared mind. ― Louis Pasteur  
    Remember, a few hours of trial and error can save you several minutes of looking at the README. -- I Am Devloper (on Twitter)

    Clickable ---> The Best of Cori's Posts  (scroll down a wee bit there)    Something fun: MySimtropolis - Invitation to become a SimCity 4 MySim

    Are you new here? Check out the Introduction and Guide to Simtropolis.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Good point to bypass the launcher, although even then DDC still was not happy. I've just installed DxWrapper and things seem to be much better, thanks everyone!

    • Like 2

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    On 5/6/2021 at 8:55 AM, Flann said:

    Trying it out now, it works for me at 2560x1440 *:thumb:


    Hey Flann, I just tried this and it didn't seem to want to launch at 2560x1440 for me.

    I placed the ddraw.dll file directly in my folder with the simcity4.exe as was indicated.

    Then I attempted to launch through steam with:

    Quote

    -CustomResolution:enabled -r2560x1440x32 -intro:off -CPUCount:1 -w

     

    Wondering if a I overlooked something for this particular wrapper.

    EDIT: Oh wait I see more posts above on this topic!


    "Find what you love and let it kill you." ~ Charles Bukowski

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Working! 2560x1440 windowed! Soooo pretty! I am wondering how much this might impact performance though. =/

    Screen Shot 07-31-22 at 04.09 PM.JPG

    • Like 1

    "Find what you love and let it kill you." ~ Charles Bukowski

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    So in region view it looks great, however in a city tile I seem to be having some issues with zooming.

    I'm wondering if this has anything to do with Hardware rendering vs. Software rendering being selected?

    Screen Shot 07-31-22 at 04.14 PM.JPG


    "Find what you love and let it kill you." ~ Charles Bukowski

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I decided to build DxWrapper from the latest code. I created a virtual machine for that because I didn't want to muck up my Windows installation with development tools. I was able to successfully build DxWrapper.

    I looked through DxWrapper's documentation and I set my dxwrapper.ini settings based on the documentation. I don't know if it all made anything "better," but if you have the know-how to do it, building from the latest code is something that can be done.

    • Like 1

    Fun fact: Buffalo sauce contains the entire DNA sequence of buffalo, so you can clone buffalo while eating buffalo wings with buffalo sauce at Buffalo Wild Wings in Buffalo, New York. I've never tried it, though.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I had plenty of questions for the creator of DxWrapper. A link to my GitHub issue can be found here: https://github.com/elishacloud/dxwrapper/issues/156

    I don't think that GitHub is going anywhere anytime soon. Still, for the sake of potential preservation, I will paste a screenshot of my created issue below. The log that I mentioned in the issue can be found attached to this post.

    Clipboard01.jpg.dd365ef06db4fab53c31333f22c4afda.jpg

    I said it in another thread in the past, but I prefer to use DxWrapper because dgVoodoo2 gives me grid lines on buildings and such.

    dxwrapper-SimCity 4.log

    Edit: I had hoped that by setting DisableHighDPIScaling = 0, then SimCity 4's user interface wouldn't be so miniscule in 4K by adjusting DPI-related compatibility settings within Windows. The user interface scale had not changed after doing all of that.

    • Like 1
    • Thanks 3

    Fun fact: Buffalo sauce contains the entire DNA sequence of buffalo, so you can clone buffalo while eating buffalo wings with buffalo sauce at Buffalo Wild Wings in Buffalo, New York. I've never tried it, though.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Alright, so my questions were answered. When using DxWrapper, the only stub .dll that needs to be copied to SimCity 4's .exe directory is ddraw.dll. Below are the only changes that I made to dxwrapper.ini.

    [Compatibility]
    Dd7to9                     = 0
    D3d8to9                    = 0
    DDrawCompat                = 0
    Dinputto8                  = 1
    DisableGameUX              = 1
    DxWnd                      = 0
    EnableDdrawWrapper         = 1
    EnableD3d9Wrapper          = 0
    EnableDinput8Wrapper       = 0
    EnableDsoundWrapper        = 0
    HandleExceptions           = 1
    SingleProcAffinity         = 4

    I enabled Dinputto8 because I have seen here on Simtropolis that it fixes a double input issue with mayor mode ploppables.

    I enabled DisableGameUX because I don't need the Windows 10/11 Xbox Game Bar present while playing SimCity 4. 

    I enabled EnableDdrawWrapper. DxWrapper's documentation says "This option enables the built-in ddraw wrapper which has some built-in fixes for specific ddraw bugs." Bugfixes are good.

    I enabled HandleExceptions. In the GitHub issue, I was told that it was probably doing nothing, but that it doesn't hurt to keep it enabled.

    I also set SingleProcAffinity to 4 so that SimCity 4 uses CPU 3 on my Intel i9-12900K CPU. If the value set for SingleProcAffinity is greater than the number of CPUs that are present in your system, then CPU 0 will be used.

    The GitHub issue can be found linked to in my previous post. Below, screenshots of the issue can be found.

    msedge_2022-08-23_23-58-58.jpg.adac6225fd8b474cd27ff5531a3acd22.jpg

    msedge_2022-08-23_23-59-21.jpg.376aa53819d1a76243b2c89679cef54f.jpg

    • Like 2
    • Thanks 2

    Fun fact: Buffalo sauce contains the entire DNA sequence of buffalo, so you can clone buffalo while eating buffalo wings with buffalo sauce at Buffalo Wild Wings in Buffalo, New York. I've never tried it, though.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I don't know much about this stuff to know about any technical implications or nuances, but he may have thought that SC4 is a 2d game based in its appearance, similarly to how SC3K is a 2d game, without knowing that all of the objects in SC4 (except I think for the interface) are 3d objects.

    • Like 1

    patreon.png    PATREON    •    MIPRO    •    MY BAT & TUTORIAL THREAD

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections