Author Topic: [Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues  (Read 696 times)

Legacy_Frimbleglim

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« on: October 23, 2012, 02:44:38 pm »


               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.  
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #1 on: October 23, 2012, 03:47:35 pm »


               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 .
                     
                  


            

Legacy_Frimbleglim

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #2 on: October 23, 2012, 05:28:43 pm »


               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
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #3 on: October 23, 2012, 06:03:01 pm »


               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
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #4 on: October 23, 2012, 06:10:03 pm »


               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
               
               

               
            

Legacy_Frimbleglim

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #5 on: October 23, 2012, 10:57:37 pm »


               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?
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #6 on: October 24, 2012, 12:58:11 pm »


               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.
               
               

               
            

Legacy_Frimbleglim

  • Newbie
  • *
  • Posts: 46
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #7 on: October 24, 2012, 04:05:27 pm »


               Strange it seems to be working fine now...  Thanks for your help Skildron.
               
               

               
            

Legacy_vanquishedangel

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
[Linux] Ubuntu 12.04 64bit Sound and Frame Rate Issues
« Reply #8 on: November 11, 2012, 08:29:12 am »


               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