Trine 2 > General Discussions > Topic Details
crysman Feb 19, 2013 @ 4:17am
[SOLVED] How to run Trine 2 with optirun (bumblebee) on a machine with a dedicated Nvidia card?
Hello,
please, how can I run Trine 2 with optirun (bumblebee)? I've tried to run steam itself with optirun:
optirun steam
but that is not working... the game does not even start after the launcher...
Last edited by crysman; Feb 19, 2013 @ 6:19am
Showing 1-5 of 5 comments
< >
crysman Feb 19, 2013 @ 6:16am 
OK, finally I've achieved to make it work. What I have done is:

0. I've had already bumblebee properly installed on my laptop

1. install primus with it's i386 libraries, too (Trine 2 seems to be 32 bit)
sudo add-apt-repository ppa:zhurikhin/primus
sudo apt-get update
sudo apt-get install primus
sudo apt-get install primus-lib:i386

2. test primus
vblank_mode=0 primusrun glxspheres
(it's been giving me something over 160 Mpix/sec, so OK, it works)

3. run steam in a standard way (not with any optirun or primus)
steam

4. modify the Trine 2 game launcher
in the steam Library menu right click on the Trine 2 game -> properties -> general tab -> set launch options... -> enter:
vblank_mode=0 primusrun %command%

5. run the game
enjoy :)


Thanks to cjenkins for inspiration[cjenkins.wordpress.com]

#crysman
Last edited by crysman; Feb 19, 2013 @ 6:17am
simon1573 Feb 19, 2013 @ 8:49am 
What is the vblank_mode=0 good for? :)
crysman Feb 19, 2013 @ 10:43am 
Oh, man, use your favourite search engine :)
It gives you better performance. I do not know why, but somebody does - see the line above.
Just try it yourself without it (point no. 2) and you'll see..
simon1573 Feb 19, 2013 @ 11:33am 
Originally posted by crysman:
Oh, man, use your favourite search engine :)
It gives you better performance. I do not know why, but somebody does - see the line above.
Just try it yourself without it (point no. 2) and you'll see..

Thanks! Stupid me - DuckDuckGo, here I come lol

EDIT: 1min later:
"You've disable sync to vblank which means you will get better performance at the expense of tearing since buffer flips are no longer synced to vblank. You can also enable it via env var: vblank_mode=0 "
Last edited by simon1573; Feb 19, 2013 @ 11:35am
crysman Feb 19, 2013 @ 11:35am 
I am using DDG, to :)
Showing 1-5 of 5 comments
< >
Per page: 15 30 50
Date Posted: Feb 19, 2013 @ 4:17am
Posts: 5