GithubHelp home page GithubHelp logo

Comments (10)

Lekensteyn avatar Lekensteyn commented on July 28, 2024

Have a look at the /etc/bumblebee/xorg.conf.nvidia and compare it with Ironhide's one. Perhaps adding some modelines improves performance or change DFP if /var/log/syslog reports a warning, otherwise I have no idea what makes the difference.

from bumblebee.

starks avatar starks commented on July 28, 2024

Ironhide is defunct and irrelevant. Don't compare against it. Though,
if I recall correctly, it used Xv by default.

The use of VirtualGL itself as a transport is a self-imposed bottleneck.

Once we figure out how to access the Nvidia framebuffer directly,
don't be surprised if there is at least a 5x performance increase
(according to my testing).

from bumblebee.

Lekensteyn avatar Lekensteyn commented on July 28, 2024

Although Ironhide is deprecated, it uses the virtualgl application too. Did you have 3D
acceleration and a correct resolution when using Ironhide?

from bumblebee.

rockorequin avatar rockorequin commented on July 28, 2024

Yes, I had 3D acceleration with Ironhide (but isn't that required anyway for glxspheres to run?). What do you mean by correct resolution? I'm just running glxspheres in its default window and I have two displays both with 1920x1080 resolution.

I tried using ironhide's xorg.conf.nvidia file (based on https://github.com/MrMEEE/ironhide/blob/master/conf/xorg.conf.nvidia but leaving out the BusID line and using "DFP" as the connected monitor). I saved this file as /etc/bumblebee/xorg.conf.nvidia-ironhide and then modified bumblebeed.conf to use this file. Xorg.8.log reports that it is using it, so it looks like the re-configuration works fine.

However, I get the same framerates as when I use bumblebee's xorg.conf.nvidia file, ie it doesn't look like the modelines make any difference.

syslog reports:

Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0): No valid modes for "1920x1200"; removing.
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0): No valid modes for "1600x1200"; removing.
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "DFP", but no
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0):     such display device could be found, or all display devices
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0):     by that name are currently unavailable.
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "TV", but no such
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0):     display device could be found, or all display devices by
Jan 23 21:56:23 sierra bumblebeed[10909]: [XORG] (WW) NVIDIA(0):     that name are currently unavailable.

I also tried changing Option "ConnectedMonitor" to "CRT" instead of "DFP" in xorg.conf.nvidia-ironhide, but syslog still reports the DFP error and there's no change in framerates.

from bumblebee.

Lekensteyn avatar Lekensteyn commented on July 28, 2024

By "resolution" I meant to ask whether the screen resolution of the primary display was not 1024x768 (vesa). A final change that may improve performance for some machines is VGL_READBACK:

VGL_READBACK=pbo optirun glxspheres

Docs: http://virtualgl.svn.sourceforge.net/viewvc/virtualgl/vgl/trunk/doc/index.html#VGL_READBACK

from bumblebee.

rockorequin avatar rockorequin commented on July 28, 2024

Thanks! With VGL_READBACK=pbo I get framerates up around 150 fps again.

Can I set this to be the default in a configuration file somewhere?

from bumblebee.

Lekensteyn avatar Lekensteyn commented on July 28, 2024

Nope, as a workaround you can create a wrapper that sets it:

mkdir -p ~/bin
printf '#!/bin/sh\nVGL_READBACK=pbo /usr/bin/optirun "$@"\n' >> ~/bin/optirun
chmod +x ~/bin/optirun

You may need to re-login if ~/bin did not exist before.

from bumblebee.

rockorequin avatar rockorequin commented on July 28, 2024

Thanks.

from bumblebee.

fadying avatar fadying commented on July 28, 2024

My optirun does not seem to work well, and change my screen resolution

$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0x95
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ironlake Mobile GEM 20100330 DEVELOPMENT x86/MMX/SSE2
26.110448 frames/sec - 29.139260 Mpixels/sec
26.335447 frames/sec - 29.390358 Mpixels/sec

$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
[VGL] WARNING: The OpenGL rendering context obtained on X display
[VGL] :8 is indirect, which may cause performance to suffer.
[VGL] If :8 is a local X display, then the framebuffer device
[VGL] permissions may be set incorrectly.
Context is Indirect
OpenGL Renderer: Software Rasterizer
4.899283 frames/sec - 5.467600 Mpixels/sec
4.950187 frames/sec - 5.524408 Mpixels/sec

from bumblebee.

Lekensteyn avatar Lekensteyn commented on July 28, 2024

VGL_READBACK=pbo will be set in the Ubuntu PPA packages version 3.0-1~...ppa4` and later.

from bumblebee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.