You are not logged in.

#1 2013-11-03 16:08:12

wootsgoinon
Member
Registered: 2013-10-30
Posts: 44

bumblebee/gaming issues

i was trying to play some games via bumblebee+wine, but i half-failed. i try to vblank_mode=0 optirun <unreal tournament>, yet i'm still limited to 60 fps (in-game options: opengl, vsync=off).
deus ex won't even start, if i optirun instead of primusrun it (speaking of which, i don't think it is uses the proprietary drivers, but the nouveau's, as it's really choppy and giving me a low framerate.)
i was playing around and editing a bit, added my correct BusID to the nvidia config file, but even that didn't really help. anyone by any chance ran into this before? on Ubuntu 13.04 all went fine with pretty much the same configurations.
thanks in advance.

/etc/bumblebee/bumblebee.conf

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=primus
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false

# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
/etc/bumblebee/xorg.nvidia.conf

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
    BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev ff)
vblank_mode=0 optirun glxspheres

ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
Polygons in scene: 62464
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 540M/PCIe/SSE2
142.200245 frames/sec - 158.695473 Mpixels/sec
142.635683 frames/sec - 159.181422 Mpixels/sec
143.125321 frames/sec - 159.727859 Mpixels/sec
143.136435 frames/sec - 159.740261 Mpixels/sec
142.752736 frames/sec - 159.312054 Mpixels/sec
143.022101 frames/sec - 159.612664 Mpixels/sec
142.428248 frames/sec - 158.949924 Mpixels/sec

Last edited by wootsgoinon (2013-11-03 17:51:20)

Offline

#2 2013-11-03 17:59:33

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: bumblebee/gaming issues

Well, on my laptop, optirun is (much) faster with virtualgl than primus !!

pascal@bobmariole ~ % optirun -b primus glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 645M/PCIe/SSE2
62.247075 frames/sec - 30.944888 Mpixels/sec
59.866559 frames/sec - 29.761462 Mpixels/sec
59.857104 frames/sec - 29.756762 Mpixels/sec

pascal@bobmariole ~ % optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 645M/PCIe/SSE2
140.152101 frames/sec - 69.673814 Mpixels/sec
140.523581 frames/sec - 69.858488 Mpixels/sec
140.418915 frames/sec - 69.806455 Mpixels/sec
optirun glxspheres  6,54s user 0,17s system 91% cpu 7,334 total

Did you try the different bridges and compression modes?

Offline

#3 2013-11-03 18:47:07

wootsgoinon
Member
Registered: 2013-10-30
Posts: 44

Re: bumblebee/gaming issues

i just tried them all, but same effect when gaming - vsync stays on.  ok, deus ex works for sure with bridge=virtualgl and command: optirun -b primus. it's just odd how it won't care a bit if added vblank_mode=0 before it.

Last edited by wootsgoinon (2013-11-03 18:52:03)

Offline

#4 2013-11-05 18:56:27

nawitus
Member
Registered: 2009-05-11
Posts: 112

Re: bumblebee/gaming issues

skualito, it's clearly limiting to 60fps because of vsync.

Offline

#5 2013-11-05 19:26:53

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: bumblebee/gaming issues

you don't need more than 60fps, 30fps is just fine


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

Board footer

Powered by FluxBB