WINE CSMT patches is not all about performance

Discussion in 'WINE' started by allenskd, Jul 12, 2014.

  1. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    A very... lousy title I have chosen. I didn't know what to put in the subject, truly. Today I want to share some comparisons and a friendly reminder that CSMT fixes texture problems that games might be having. This is an example:

    WINE 1.7.22-GW2 (raw input patch) I compiled this today to test out some thing. I also compared the source against the wined3d, it seems they haven't merged the code, or at best, they are slowly doing it.

    A quick example! I'm running Guild Wars 2 in this test, it has notorious graphical problems in upstream WINE.

    With WINE 1.7.22 (raw input)
    [​IMG]


    With WINE 1.7.18 CSMT and raw input patch
    [​IMG]


    Things are looking up quite nicely, imho. The performance I'm getting with CSMT in some areas are 60FPS, and an average of 25-30FPS.

    I wanted to share this because maybe someone is having graphical problems and who knows if using CSMT patches could help him/her.
  2. Aryvandaar

    Aryvandaar Active Member

    Joined:
    Jun 21, 2014
    Messages:
    304
    Likes Received:
    29
    Trophy Points:
    28
    Location:
    Norway
    How did you manage to download the GW 2 files with the launcher? Mine keeps crashing every 1-2 minutes. Tried many different WINE versions.
  3. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    Hey Aryvandaar. I actually don't use PlayOnLinux anymore. I've put over 2-3 hours of gameplay in one session of GuildWars 2. Amusingly, in a way, another person who was having trouble with PoL + GW2 reported launcher issues.

    I provided my own compilation of WINE with CSMT patches and GW2. Which is the very same I use to play it! He reported back that everything worked. Maybe you'll get the same luck :)

    Download link

    I hope this helps you. Extract it and put the folder in ~/.PlayOnLinux/wine/linux-x86/ you will see it in your PlayOnLinux GUI almost instantly.

    My system:
    [​IMG]

    WINE was compiled in a 32bit chroot environment with Wheezy i386 arch
  4. Aryvandaar

    Aryvandaar Active Member

    Joined:
    Jun 21, 2014
    Messages:
    304
    Likes Received:
    29
    Trophy Points:
    28
    Location:
    Norway
    Thank you for sharing! I don't play GW 2 atm, but a friend asked me if I wanted to play, then he got a bit unsure, because of a bad record with MMO, but I tried getting it to work, and now I probably won't be able to rest until I get it working (if other people report that it should work).
  5. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    No problem! Just remember to turn on CSMT in the registry!
  6. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    Dude I've read enough! I am totally trying CSMT Wine in PlayOnLinux.
    I see the red horns on the helmet are now gone.... very nice!

    I have a very similar problem with Two Worlds II and the main characters hair.
    I'm trying it first thing in the morning.

    Where in the registry do I make the CMST change?
  7. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    Ok, I tried it this morning with Two Worlds II and just like the last time I tried CSMT, there are a bunch of artifacts.
    It didn't help at all. Either I'm doing something wrong, or I'm using the wrong version of CMST.

    Wine 1.7.10-CMSTblablablabla

    Registry:
    [HKEY_CURRENT_USERSoftwareWineDirect3D]
    "CSMT"="enabled"

    Is this correct?
  8. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    I should mention that 1.7.10 didn't get the texture fixes Stefan did... 1.7.18 did. If you notice I actually linked the file for @Aryvandaar. Scroll up where it shows the screenshot of a terminal, there's the download link and the instruction. It doesn't matter if I labeled it for "GW2" the mouse patch is like 4 lines change and it shouldn't affect anything mouse related.


    I think so... you gotta go to Software\Wine\Direct3D and create the string key there.
  9. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    ok, I'll try your patched wine instead.
    Thanks
  10. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    Good luck, I'm not sure if it will work on all games :(
  11. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    I'm going to find out :cool:
  12. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    In case anyone is interested: Gameplay video just uploaded. a tad choppy due to the recorder :/ I wonder what's hindering it. It wasn't so choppy when I used FRAPS to record games.

  13. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    It doesn't appear choppy at all.
    I installed the cost this morning, will try's tomorrow
  14. Buwaro

    Buwaro New Member

    Joined:
    Jul 23, 2014
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    you have to set "StrictDrawOrdering" on "disabled" or else CSMT won't work
  15. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    What? Allen never said anything about StrictDrawOrdering. I'll have to try that too.
    Either way, I got Two Worlds II textures to look nice with GLSL disabled.
    The only problem I'm having with Two Worlds II is the shadows. Very buggy, so I disable them.
  16. Buwaro

    Buwaro New Member

    Joined:
    Jul 23, 2014
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3

    Written by stefan Dösinger himself:
    "
    Make sure to disable StrictDrawOrdering. It is no longer
    required with those patches and will destroy any performance gains.
    "
    source: http://www.winehq.org/pipermail/wine-devel/2013-September/101106.html


    I personally use the patched wine from foresto. it was made specifically for guild wars 2 but it also works great with many other games.
  17. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,347
    Likes Received:
    627
    Trophy Points:
    113
    Location:
    Linux, Virginia
    Home page:
    cool, thanks for the confirmation. I have yet to see benefit from CMST patches, but I'm always willing to try it.
  18. Aryvandaar

    Aryvandaar Active Member

    Joined:
    Jun 21, 2014
    Messages:
    304
    Likes Received:
    29
    Trophy Points:
    28
    Location:
    Norway
    It's been a while since I've used Windows and edited the dreaded registry.

    [HKEY_CURRENT_USERSoftwareWineDirect3D]
    "CSMT"="enabled"

    I go to the Direct3D folder, then new string value, and set the data to "CSMT"="enabled"?
  19. allenskd

    allenskd Active Member

    Joined:
    Feb 5, 2014
    Messages:
    510
    Likes Received:
    52
    Trophy Points:
    28
    Correct. Also in the same folder

    StrictDrawOrdering=disabled

    and maybe UseGLSL=disabled/enabled (performance may vary per game)
  20. Buwaro

    Buwaro New Member

    Joined:
    Jul 23, 2014
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Code:
    REGEDIT4
    
    [HKEY_CURRENT_USER\Software\Wine\Direct3D]
    "CSMT"="enabled"
    "StrictDrawOrdering"="disabled"
    save it as a .reg file
    much easier than writing it manually for every prefix!;)
    mrdeathjr28 likes this.

Share This Page