Urban Terror Forums: Compiz and UrbanTerror - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

Compiz and UrbanTerror Rate Topic: -----

Is anyone NOT having trouble?

#1 User is offline   Taenon Icon

  • Account: taenon
  • Joined: 03-March 10
  • Posts: 27

Posted 22 May 2010 - 11:24 PM

In light of finally installing Ubuntu 10.04, I decided that 2010 seems like a good year to ask:

Does compiz make UrT unplayable for you all as well? I'm not talking framerates. I'm still getting great framerates (well above 125), and the drop due to compiz is only really seen on intel and Nvidia cards:

http://www.phoronix....peed_test&num=1

I'm talking about this random slow-motion style jittering that plagues me when I play while compiz is on. When off, Urt on 10.04 (the optimized binary, not FrozenSand's) runs great. Anyone else getting this? Anyone not getting this?

Its pretty silly to have to disable visual effects to play a game... (I understand the technical challenges, but it doesn't make it any less silly).

My system:

Ubuntu 10.04 fresh install with Compiz
Phenom II x4 955
Asus 790X Mobo
4GiB G.Skill ram
Nvidia GTX260 core 216
etc.
Any other UCSD Grad students? PM me!

#2 User is offline   ObScUrE Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: obscure
  • Country:
  • Joined: 28-February 10
  • Posts: 2,192

Posted 23 May 2010 - 12:38 AM

It's a known problem compiz and pulse audio, too.
you can check out the page from ioQuake3-team.


Help-ioQuake3

Quote

Hey I’m running Ubuntu or some other distribution with compiz and ioquake3 is all screwed up?

Disable Compiz.


Quote

Why is my audio crackling / distorted under Linux?

This is the result of using the Pulseaudio sound server. This soundserver is enabled by default in Ubuntu Hardy and Fedora Core 9. It may be enabled on other distros. Pulseaudio allows you to control the volume on a per-application basis, but it appears to have some serious bugs and is listed on the official website as under ‘heavy development’.
To see if you have Pulseaudio running, use the following command:
ps -A |grep pulseaudio
If it’s running, I recommend you search for the proper way to disable it for your distro. Some hints: Gnome needs to have it turned off in the System-> Preferences->Sound control panel, and you should remember to clear any references of it from /etc/asound.rc, ~/.asoundrc and ~/.openalrc.

Quote

BenQ-XL2420T|Filco-Ninja-TKL-MXRed|Logitech-G403|AKG-K70201000010 01101100 01110101 01110100 01010010 01100001 01110101 00100100 01100011 01101000~The quieter you become, the more you are able to hear.~

#3 User is offline   Taenon Icon

  • Account: taenon
  • Joined: 03-March 10
  • Posts: 27

Posted 23 May 2010 - 02:34 AM

As I'm using PulseAudio and not having any problems, I was wondering more if this was the same problem other people were having (ie lag not drop in framerate), or if there were people with similar setups using Compiz and not having problems.

I know you can just disable Compiz (compiz-switch is pretty useful), but I'm wondering if there is resolution in sight or if there are other configurations that can play with compiz.
Any other UCSD Grad students? PM me!

#4 User is offline   SailorMo-n Icon

  •   league admin   
  • Account: sailormon
  • Main tag: sC`
  • Country:
  • Joined: 28-February 10
  • Posts: 66

Posted 31 May 2010 - 10:55 PM

Check the 'Unredirect Fullscreen Windows' in CompizConfig Settings Manager. That's what I do and I don't have to swtich to Metacity when playing.

Of course, if you're not playing fullscreen, this will not help.

Edit: Typo

This post has been edited by SailorMon: 31 May 2010 - 10:56 PM

Caco, ergo sum!

#5 User is offline   mitsubishi Icon

  • Account: mitsubishi
  • Country:
  • Joined: 28-February 10
  • Posts: 13,481

Posted 01 June 2010 - 07:13 AM

If that's true they must make it the default, immediately.

bullet_loaderAdvertisement

#6 User is offline   Rinsmaster Icon

  • Account: rinsmaster
  • Main tag: O.O|
  • Country:
  • Joined: 28-February 10
  • Posts: 170

Posted 05 June 2010 - 12:27 PM

I had the same problem, the FPS wasn't the problem, it just felt more laggy with compiz on. Besides that, when I put AA and AF on a high setting in my nVidia control panel, the AA was also applied to compiz, which made stuff even more laggy (I had to use the "override application settings", because else ioQ3 wouldn't accept it somehow).
So as a solution I made this launcher script:


metacity --replace &
sleep 1
nvidia-settings --load-config-only --config=/home/thomas/.nvidia-fullaa
mumble-overlay /home/thomas/games/UrbanTerror/ioq3-urt
nvidia-settings --load-config-only --config=/home/thomas/.nvidia-noaa
compiz --replace &



It turns Compiz off and loads the full AA/AF settings with the nvidia-settings tool.
Then when you quit UrT, it restores the AA/AF settings and launcher Compiz again :)

As a result I can play very smooth with full AA/AF settings, while Compiz also runs smooth when not gaming :)

I thought I'd post it since so many people are having problems :)
Also, I've never had any problems with Pulseaudio since 9.10, it runs great here and I can finally play UrT, use mumble, and skype at the same time.


EDIT: Wow, thanks SailorMon! Using that option there is indeed no need to disable Compiz :D Now my script is just three lines:


nvidia-settings --load-config-only --config=/home/thomas/.nvidia-fullaa
mumble-overlay /home/thomas/games/UrbanTerror/ioq3-urt
nvidia-settings --load-config-only --config=/home/thomas/.nvidia-noaa


This post has been edited by Rinsmaster: 05 June 2010 - 12:49 PM


#7 User is offline   pr0fan0 Icon

  • Account: pr0fan0
  • Joined: 05-March 10
  • Posts: 6

Posted 06 June 2010 - 06:08 PM

View PostRinsmaster, on 05 June 2010 - 12:27 PM, said:

.........

nvidia-settings --load-config-only --config=/home/thomas/.nvidia-fullaa
mumble-overlay /home/thomas/games/UrbanTerror/ioq3-urt
nvidia-settings --load-config-only --config=/home/thomas/.nvidia-noaa




Hi, can you explain how to lunch this script or where to put it and what exactly do it?

i'm very interesting.

Thanks a lot!

(sry for my poor english)

#8 User is offline   SailorMo-n Icon

  •   league admin   
  • Account: sailormon
  • Main tag: sC`
  • Country:
  • Joined: 28-February 10
  • Posts: 66

Posted 07 June 2010 - 06:25 PM

Try like this:

Create a file containing something like this:


#!/bin/sh

nvidia-settings --load-config-only --config=/home/thomas/.nvidia-fullaa
mumble-overlay /home/thomas/games/UrbanTerror/ioq3-urt
nvidia-settings --load-config-only --config=/home/thomas/.nvidia-noaa




/home/thomas/games/UrbanTerror/ioq3-urt is the UrT executable, so you need to adjust the path to suit your location. I'll keep itMumble in the current form for this example, but I hope you know how where the actual location is.
Second, the location of the config files needs to be changed, too. You know where the configs are.
Third, if you don't need Mumble (google it, if you don't know what the program does), edit this line


mumble-overlay /home/thomas/games/UrbanTerror/ioq3-urt



to


/home/thomas/games/UrbanTerror/ioq3-urt




Save the file as "urt_aa", open a console, navigate to where the file is, and type


chmod +x urt_aa



Now you're done. Do


./urt_aa



every time you want to play the game (don't use the ioq3-urt file directly).

If you go with the file browser from KDE/GNOME/XFCE etc., you can also double-click it. I hope it's clear enough (I'm used to working in consoles).

Edit: spelling

This post has been edited by SailorMon: 07 June 2010 - 06:30 PM

Caco, ergo sum!

#9 User is offline   pr0fan0 Icon

  • Account: pr0fan0
  • Joined: 05-March 10
  • Posts: 6

Posted 08 June 2010 - 02:56 PM

Thank you so much... but, i need to know what is ".nvidia-fullaa" and ".nvidia-noaa".

Where can i get it?

There are not present in my home...

#10 User is offline   pr0fan0 Icon

  • Account: pr0fan0
  • Joined: 05-March 10
  • Posts: 6

Posted 08 June 2010 - 05:39 PM

Ok guy, probably i've understood.

I run nvidia-settings, and i've modified Antialiasing Settings.

1) I've tested with FULL AA in "Override Application Settings" mode. -> FPS = 60-70
2) 4x AA in the same mode. -> FPS = 100-110
3) 2x AA in the same mode. -> FPS = 125

Urt results playable only with the 3° setting.

But... in all these cases, urt is worst than whitout compiz.
Whitout compiz urt motion results more fluid.

with 2x AA, FPS are still 125-126, but the refresh appears too slow or something like that.


Anyway Thanks a lot, and i attend for any help.

(sry if something results nonsensical :P i've to improve my english ihihih)


edit:

i've checked Texture Sharpening, and urt appears get better

This post has been edited by pr0fan0: 08 June 2010 - 06:13 PM


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942