Page 3 of 15 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 146

Thread: How to play openGL based games with full 3D acceleration on XGL/compiz

  1. #21
    Join Date
    Apr 2005
    Beans
    73
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    This method works for me also but I'd just like to say that if you don't have a crash hot graphics card you might want to disable the screensavers as this slowed NWN down to a crawl after a few minutes. I assume that they are still being rendered by the card even though they are not being displayed and my poor MX4000 couldn't cope with both.

    Hope this helps.
    This is the correct order:
    man pages, Forum Search, Google Search, Ask someone who might know.

  2. #22
    Join Date
    Apr 2006
    Beans
    8

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    Thanks this script is really great!

    Too bad the window decorations go missing in windowed applications, but hey at least most games don't need the title bar buttons to exit.

  3. #23
    Join Date
    Apr 2006
    Location
    Netherlands
    Beans
    18
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    it takes 15 minutes to start up guild wars from cedega using this

  4. #24
    Join Date
    Mar 2006
    Location
    here in h...
    Beans
    36
    Distro
    Ubuntu 6.06

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    i get no input from the following command
    Code:
    clay@atlantis:~$ ps uax | grep Xorg | grep Xgl
    clay@atlantis:~$
    and the following command
    Code:
    clay@atlantis:~$ nonXgl ppracer
    xhost:  unable to open display ":93"
    PPRacer 0.3.1 --  http://racer.planetpenguin.de
    (c) 2004-2005 The PPRacer team
    (c) 1999-2001 Jasmin F. Patry<jfpatry@sunspirestudios.com>
    PPRacer comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to redistribute it under certain conditions.
    See http://www.gnu.org/copyleft/gpl.html for details.
    
    *** ppracer error: Couldn't initialize SDL: No I/O port permissions
    clay@atlantis:~$
    any ideas?

    EDIT: problem solved
    i simply changed the display in /usr/bin/nonXgl to 0, rather than 93
    Code:
    #!/bin/sh
    
    DISPLAY=":0"
    
    if [ -z "$1" ]; then
    echo "Usage: nonXgl <command>"
    exit 1
    fi
    
    isdisplay=0; isauth=0; for test in $(ps ax | grep "$DISPLAY" | grep Xorg ); do if [ $isauth -eq 1 ]; then export XAUTHORITY="$test"; isauth=0; fi; if [ "$test" = "-auth" ]; then isauth=1; fi; done;
    
    
    sudo /usr/bin/Xorgallowlocal "$XAUTHORITY" "$DISPLAY"
    
    exec $@
    now i can run gl apps/games with the script. thanks!
    Last edited by sudomania4; June 2nd, 2006 at 08:02 PM.

  5. #25
    Join Date
    Jun 2006
    Beans
    12

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    Oke first I'm jesper on the compiz forums. Second I will like to add this DOES NOT start a new X server so it works on ati cards. I wrote this from an ati card.

    Third, there is a better method, it involves changing the line for xgl, adding -xorgAc to the end.

    It becomes something like this (yes this is for an ATI card, fbo works as well now)

    Code:
    /usr/bin/Xgl :0 -fullscreen -br -accel glx:pbuffer -accel xv:fbo -xorgAc
    run the program like DISPLAY=:93 ppracer

    now using the nonXgl script is handy when you use the run command so you can save this code as nonXgl ::
    Code:
    #!/bin/sh
    
    DISPLAY=":93"
    
    if [ -z "$1" ]; then
            echo "Usage: nonXgl <command>"
            exit 1
    fi
    
    LD_PRELOAD=/usr/lib/libGL.so.1.2 $@
    It also makes sure you load the correct libGL.so.1.2 for your games (what should be but still)

  6. #26
    Join Date
    Jan 2006
    Location
    Northern Finland
    Beans
    1
    Distro
    Ubuntu Breezy 5.10

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    Works fine with nvidia fx 5200, I'm able to play ET again, thanks!

  7. #27
    Join Date
    May 2005
    Location
    Vancouver
    Beans
    195
    Distro
    Ubuntu

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    Quote Originally Posted by jakster
    Oke first I'm jesper on the compiz forums. Second I will like to add this DOES NOT start a new X server so it works on ati cards. I wrote this from an ati card.

    Third, there is a better method, it involves changing the line for xgl, adding -xorgAc to the end.

    It becomes something like this (yes this is for an ATI card, fbo works as well now)

    Code:
    /usr/bin/Xgl :0 -fullscreen -br -accel glx:pbuffer -accel xv:fbo -xorgAc
    run the program like DISPLAY=:93 ppracer

    now using the nonXgl script is handy when you use the run command so you can save this code as nonXgl ::
    Code:
    #!/bin/sh
    
    DISPLAY=":93"
    
    if [ -z "$1" ]; then
            echo "Usage: nonXgl <command>"
            exit 1
    fi
    
    LD_PRELOAD=/usr/lib/libGL.so.1.2 $@
    It also makes sure you load the correct libGL.so.1.2 for your games (what should be but still)
    Perhaps I missed it from your post, but where do we change the line for Xgl (the first line of code in your post)? Is that the /usr/bin/Xgl script, or if we install xgl with an ATI card will it just drop us to a command line and we start Xgl like that?

  8. #28
    Join Date
    Mar 2006
    Beans
    18

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    can play 3D games based in wine and cedega with this method ?

  9. #29
    Join Date
    Apr 2006
    Beans
    48
    Distro
    The Feisty Fawn Testing

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    Great didn't try it yet bec. i messed up my *Dapper RC* upgraded to final trying to get the DRI driver to work with my ATI 9600XT & i failed totally
    but i'll test it when i reinstall clean Dapper final later on
    what i wanna ask is Will it work with the ATI driver 8.25.18 from repso
    also jakster didn't say what happens when adding
    -xorgAc
    to the end of the Xgl script & what exactlly does it do..

  10. #30
    Join Date
    Dec 2004
    Beans
    29
    Distro
    Ubuntu Breezy 5.10

    Re: How to play openGL based games with full 3D acceleration on XGL/compiz

    first of all i'd like to announce that nonXgl script does work with the latest ati drivers (i use 9700 for those who care). i ran ET and it looks to run OK. Though when running glxgears it looks something like that screenshot on the previous page.
    4.10 - Good
    5.04 - Good
    5.10 - BUGGY
    6.04 -

Page 3 of 15 FirstFirst 1234513 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •