LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Counter Strike Source, under wine, very slow. (https://www.linuxquestions.org/questions/linux-games-33/counter-strike-source-under-wine-very-slow-447330/)

KarlosDaJackel 05-22-2006 07:17 AM

Counter Strike Source, under wine, very slow.
 
Hi All,
I'm trying to setup Counter strike source on Gentoo.

My problem is that it is really slow. When it loads in the console I get an error that the "slow directsound HEL" system will be used. The videotest runs but at 0.79 FPS.

Here is more info on the system.

I have done a new install of Gentoo, sync'd and compiled for AMD64.
I've kernel 2.6.16-gentoo-r7
I've installed ATI drivers 8.24
I've installed wine (0.9.11)
I've installed steam as per the instructions on linux dash gamers dot org
I've downloaded Counter Strike source via steam.

My video accell works (glxgears gets 10,250 FPS), glxinfo says render is ATI, dri enabled. PPracer gets 160 FPS.

I use alsa drivers sound drivers with OSS emulation enabled. OSS is selected in winecfg, same with or without emulation. With alsa or jack selected in winecfg it just crashes at the menu. OSS allow the game to load and be played (at 1 fps).

Any help appreciated. It's not a life or death situation or anything.
Karlos

Cogar 05-22-2006 11:19 AM

I don't think Counter-Strike: Source has yet has yet had that much effort spent on it. If you check the Wine Application Database, you will see that even the Platinum programs do not run equally well for all people. Probably your best bet is to go through the information they have over at Wine HQ and see if you can come up with some ideas. Good luck. I am interested in getting CS:S to run in Wine as well. :)

KarlosDaJackel 05-22-2006 01:09 PM

Thanks for the reply Cogar.

I've seen one or 2 people online with acceptable framerates in counterstrike source, under vanilla wine. So I know it is a real possibilty. I've exausted winehq and linux-games. I will figure it out damn it, lol.

I think its just the sound issue. I've started CS:S with the -dxlevel 70 option and it did not run any faster. I've even tried nice -n 20 on steam.exe and i've also set WINEDEBUG="-all" not one made it go any faster, so it's likely the sound HEL thing thats the problem.

Cogar 05-22-2006 04:29 PM

You are welcome. Incidentally, if you do determine the solution, please do everyone a favor and post your findings over at WineHQ. You might also ask those other people who you met online that got it running correctly to do the same. As I said before, good luck!

KarlosDaJackel 05-23-2006 02:12 AM

Quick update,
I was wrong about the version of wine I had, I said I had 0.9.11 I actually had 0.9.8 :eek:

Then I read this
"Wine versions 0.9.7 to 0.9.10 have an OpenGL regression which may cause bad performance in Half-Life 1 based games. Use the newest version instead (0.9.11 or newer)"

So I told gentoo to unmask and grab me a copy of 0.9.13, with this version it crashes just as the menu should appear, but I have not recreated my ~/.wine folder yet.

I will recreate the wine folder later today, reinstall the tahoma font, reinstall the mozilla active x control, reinstall steam, and reinstall CSS to see is it any better. :scratch:

KarlosDaJackel 05-23-2006 02:33 PM

YAY IT WORKS!

This may be a bit rough but this is how....


ok, gentoo optimised for x86_64 with 2.6.16 kernel, alsa as external package. Alsa set up to offer oss emulation.

ATI Drivers 8.24.8 AMD64 bit version

unmasked and emerged latest wine 0.9.13 and it dependencies.

ran winecfg set sound to OSS only

copied tahoma.ttf .wine/drive_c/windows/fonts
copied mozcontrol.tgz to .wine/drive_c/Program Files/

untared mozcontrol.tgz
cd mozcontrol
regsrv32 mozctl.dll

wine SteamInstall.exe
standard install, did not change any options crashes at 27%

cd .wine/drive_c/Program Files/Steam
wine steamTmp.exe SelfUpdate "C:\Program Files\Steam\steam.exe" 14
allow steam to continue to update itself from where it previously crashed

wait for logon screen to appear. log in, may need to copy and paste into the window before it will allow you to type, save your logon details. allow steam to update. do not minimise. if you want it out of the way click the top right x. It will
minimise to tray. If you want to install from your game from the net, select the game and install. I am running the .exe of my backup. So quit steam and run the backup.exe. do not choose "run steam now" when it completes

ran winecfg and set the following

windows = 98
Enabled desktop double buffering
enabled allow the window manager to control the windows.
enabled emulate virtual desktop

Direct 3d,
Vertex shader support: hardware
Enabled allow pixel shader support.

Audio
Hardware Acceleration: Emulation
sample rate: 44100 bits per sample 16
Enabled driver emulation.

started the game as follows
WINEDEBUG="-all" nice -n 20 wine C:/Program\ Files/Steam/Steam.exe -console -dxlevel 70 -width 800 -height 600 -window -applaunch 240 "$@"

It ran the video test and scored 107.81 FPS

Hardware is Athlon 64 3700+, ati x850pro, 2GB ram, 74GB raptor HDD. Initally it was very laggy, but that was my brother on bittorrent. Once he quit out my ping to my clans server was 50 which is fine by me :)

I got 1 kill and 7 deaths but i've not played CSS for 2 months and i dont have my zboard setup under linux yet, change my in game nic from [Nog] KarlosDaJackel to [Nog] TuxyDaJackel. 1 guy got it :)

Cogar 05-23-2006 06:09 PM

Very cool. :cool: Congratulations and thank you for the information! (Let us know if you discover any additional tweaks.)

One question: it looks like you are running DirectX 7.0 instead of a higher (later) version. Is there a reason for that? (Just curious.)

KarlosDaJackel 05-24-2006 03:01 AM

Apparently the Vertex and Pixel shader code (direct x 8 and 9) is very buggy.

So i decide to go through a few stages with this.
1. It just works
2. It works well
3. It works perfect


Still on stage one, will try get some more eye candy later today. Also the performance test when running in a 800x600 window at directx7 level only scored 108 FPS. On an inferior os i'd expect at least 250 fps at those settings.

But at least its playable now. Good thing as I have a lan coming up in 4 days :)


All times are GMT -5. The time now is 11:56 PM.