LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-22-2006, 07:17 AM   #1
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
Question 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
 
Old 05-22-2006, 11:19 AM   #2
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
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.
 
Old 05-22-2006, 01:09 PM   #3
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
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.
 
Old 05-22-2006, 04:29 PM   #4
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
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!
 
Old 05-23-2006, 02:12 AM   #5
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
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

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.
 
Old 05-23-2006, 02:33 PM   #6
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
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
 
Old 05-23-2006, 06:09 PM   #7
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
Very 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.)

Last edited by Cogar; 05-23-2006 at 06:10 PM.
 
Old 05-24-2006, 03:01 AM   #8
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Original Poster
Rep: Reputation: 15
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
 
  


Reply

Tags
css, games, wine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counter Strike in wine vegetassj2 Linux - Games 24 09-21-2005 11:21 PM
Counter-strike,[color=orange]H L F - L I F E [/color],Counter-strike: Source. Dennisgoop Linux - Games 2 08-10-2004 03:03 AM
Wine + Counter Strike sub_bastard Linux - Software 13 09-28-2003 11:11 PM
Counter-Strike under Wine Draco Linux - Software 3 09-17-2003 05:56 PM
Counter Strike With Wine nivek Linux - Software 12 03-11-2003 07:48 PM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration