Aller au contenu

Photo

[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
Frimbleglim

Frimbleglim
  • Members
  • 25 messages
So I finally managed to get NWN to run in linux but the frame rate is really slow and there is no sound (no videos either but I can live with that).  I am running the game on a high spec computer

Intel Core i5-2500k 
Nvidia GTX 570 1.3GB
Graphics Card 4GB ram

with the latest NVIDIA drivers installed.  

I tried removing the ./lib: from the shell script but this caused the game to not run at all.  
Any ideas on how I can get this working will be much apprieciated.  Thanks.  

#2
Skildron

Skildron
  • Members
  • 231 messages
I run NWN on just the same Linux system, but lower grade hardware, and it works flawlessly, with movies, hardware mouse, user accounting and chat window logging.

What did you mean by "this caused the game to not run at all"? Does it start and crash or refuse to start due to missing shared objects?

First, you need 32bit support:
sudo apt-get install ia32-libs-multiarch
Then, remove the ./lib part from your nwn startup script and add the following:
export SDL_AUDIODRIVER=pulse
right before the call of nwmain. That should settle most of your issues - if not, or if there is more, come back here.

BTW: Where do you get your nvidia drivers? I use the ubuntu-x-swat ppa for ubuntu packages. My nvidia version: 304.60-0ubuntu1~precise~xup2

If you have not done so already, you can add it with the following commands:
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

First, you must of course remove the nvidia drivers you already have, if they circumvented the package management.

HTH
Greetings
Skildron

Modifié par Skildron, 23 octobre 2012 - 02:52 .


#3
Frimbleglim

Frimbleglim
  • Members
  • 25 messages
The system just refused to start. I assume due to missing shared objects whatever that means.

I did as you suggested and it now works but still no sound.

I use the same drivers as you anyway.

Thanks,
Frimble

#4
Skildron

Skildron
  • Members
  • 231 messages
You can try with another SDL setting:
export SDL_AUDIODRIVER=alsa
Make sure you have no typos in the variable and driver name. This might do the trick. Does sound work in general in your setup, e.g. for youtube videos or mp3 player software?

Greetings
Skildron

#5
Skildron

Skildron
  • Members
  • 231 messages
Missing shared objects means missing libraries. If you are acquainted to windows, you might know of dll files. Those exist in linux systems, to, but are called 'shared objects', the file name ends with .so. NWN needs lots of them to run properly and it needs them as 32bit versions which can be a little tricky on a 64bit system. The multiarch support of Ubuntu 12.04 makes this a lot easier than it has been in earlier versions.

Greetings
Skildron

#6
Frimbleglim

Frimbleglim
  • Members
  • 25 messages
I feel like an idiot now. The sound wasn't working because I had the wrong speaker's selected. All fixed now thanks.

The frame rate is still much slower than when I use wine. Any ideas?

#7
Skildron

Skildron
  • Members
  • 231 messages
Not really - the 3d acceleration should by there both in 32bit and 64bit if you installed the nvidia driver package. What fps value does NWN give you Linux native and with wine? On my system, I get about 40 fps native, about 30 with Windows 7, and wine I never tried.

Which nwn version did you install? There are several packages out there. If it is the gog downloadable version, you have to apply the 1.69 patch though the game claims to be 1.69 - the download version misses some files. There have been reports in the past that this affects the graphics performance.

#8
Frimbleglim

Frimbleglim
  • Members
  • 25 messages
Strange it seems to be working fine now... Thanks for your help Skildron.

#9
vanquishedangel

vanquishedangel
  • Members
  • 10 messages
I am posting this here because I cannot figure out how to start my own thread here if I can lol. But this is relevant to the O.P. as well

You can set "Client CPU Affinity=1" and "Max Memory Usage=1024" in the file nwnplayer.ini and this helps alot, dual core can often hinder nwn, plus the default Max memory in nwn is low, I think it is 64mb or close to that.

I have recreated the guide on how to install NWN on linux, it covers both 32bit and 64bit plus it gets the movies working full screen on 64bit as well as covers some performance settings for better FPS and covers some common problems that people run into with permissions and errors. I was hopeing to get someone to give it a look over (hopefully Skildron and a few others). I am still working on it a bit but hopefully can resolve alot of issues for people

http://ubuntuforums....d.php?t=2082534