Hi Robert,
I have seen this as well when toggling between different threading
models. Trying toggling to between SingleThreaded, ThreadPerContext
and ThreadPerCamera.
What I am seeing is that when cull and draw are happening at the same
time the times for each go up. My guess is that the cores are
overwhelmed by the memory bandwidth needs that having both the cull
and draw work at the same time is causing.
Things like processor affinity can also have an effect. I don't know
the status of Suse9.3 w.r.t support for processor affinity.
Processor affinity works in 9.3. I have a small application that lets me
set the affinity of threads from console. With that I made a test. I see
two OSG threads in ThreadPerCamera mode ( btw also in thread per context
there are two threads. Do I have two contexts?? ). When I lock the two
threads to different CPU's performance does *not* change but the
serialization problem disappears. Cull and Draw work always parallel.
Also when I change the threading modes I don't see much difference in
the performance of cull and draw.
Another possiblity for a different is the slightly different view
point between the osgviewer and osgproduceviewer versions.
Looking around with small angular changes don't change anything. To be
sure we'll need to wait path saving though.
4- Is 'f' key is replaced with something else or not implemented yet? I
have a dual head config here. When osgviewer opens a window it makes it
full screen which has some problems about input in this configuration.
Window is opened only on the left screen but input acts as if it is only
the left half of the window ( for example in drive mode centered mouse
results in turning to left and mouse pointer on the right edge results
in driving straight ). This used to happen before and I could solve it
by pressing 'f' and then maximizing the window. I couldn't find a button
that has the same effect.
The osgviewer should be default open up across both heads,this is how
I'm using it everyday here.
How have you set up the dual head? Is it TwinView? Could you send me
you /etc/X11/xorg.conf.
I'm using dual head here but its two cards.
I'll configure my setup so I'm using TwinView.
I've attached xorg.conf . I have two graphics cards but SLI is disabled
and only one of the cards' outputs are used.
Tugkan
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 ([EMAIL PROTECTED]) Fri Dec 15 10:12:14 PST
2006
# /.../
# SaX generated X11 config file
# Created on: 2006-11-18T17:18:31+0100.
#
# Version: 4.8
# Contact: Marcus Schaefer <[EMAIL PROTECTED]>, 2002
#
# Automatically generated by [SaX2] (4.8)
# PLEASE DO NOT EDIT THIS FILE!
#
##########################
# ServerLayout
# SCREEN 0: XINERAMA
# SCREEN 1: XINERAMA
# SCREEN 2: TWINVIEW
##########################
Section "ServerLayout"
Screen "Screen[2]" 0 0
# Screen "Screen[0]" 0 0
# Screen "Screen[1]" RightOf "Screen[0]"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
EndSection
Section "Files"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/mouse"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
InputDevices "/dev/pointer0"
InputDevices "/dev/pointer1"
InputDevices "/dev/pointer2"
InputDevices "/dev/pointer3"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
EndSection
Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail"
Option "Clone" "off"
# Option "Xinerama" "on"
EndSection
Section "InputDevice"
Identifier "Keyboard[0]"
Driver "kbd"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
EndSection
Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "ImPS/2 Logitech Wheel Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection
Section "Modes"
Identifier "Modes[0]"
ModeLine "1600x1200" 198.7 1600 1712 1888 2176 1200 1201 1204 1251
ModeLine "1600x1200_60" 161.0 1600 1704 1880 2160 1200 1201 1204 1242
-hsync +vsync
ModeLine "1600x1200" 211.7 1600 1720 1896 2192 1200 1201 1204 1254
ModeLine "1280x1024" 134.7 1280 1368 1504 1728 1024 1025 1028 1068
ModeLine "1280x1024" 155.5 1280 1376 1512 1744 1024 1025 1028 1074
ModeLine "1280x1024_60" 108.9 1280 1360 1496 1712 1024 1025 1028 1060
-hsync +vsync
ModeLine "1024x768" 79.5 1024 1080 1192 1360 768 769 772 801
ModeLine "1024x768" 92.0 1024 1088 1200 1376 768 769 772 806
ModeLine "800x600" 47.5 800 840 920 1040 600 601 604 626
ModeLine "800x600" 55.2 800 840 928 1056 600 601 604 630
ModeLine "640x480" 29.8 640 664 728 816 480 481 484 501
ModeLine "640x480" 34.8 640 672 736 832 480 481 484 504
EndSection
Section "Monitor"
Identifier "Monitor[0]"
VendorName "AMT"
ModelName "MONITOR"
UseModes "Modes[0]"
DisplaySize 320 240
HorizSync 30.0 - 98.0
VertRefresh 43.0 - 75.0
EndSection
Section "Device"
Identifier "Device[0]"
Driver "nvidia"
VendorName "NVidia"
BoardName "GeForce SLI"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device[1]"
Driver "nvidia"
VendorName "NVidia"
BoardName "GeForce SLI"
BusID "PCI:6:0:0"
Screen 1
EndSection
Section "Screen"
# Option "PerformanceMonitorMode" "1"
Identifier "Screen[0]"
Device "Device[0]"
Monitor "Monitor[0]"
DefaultDepth 16
Option "ConstantFrameRateHint" "1"
Option "Coolbits" "1"
SubSection "Display"
Option "MultiGPU" "Auto"
Option "SLI" "Auto"
Depth 15
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x1024_60" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
# Option "PerformanceMonitorMode" "1"
Identifier "Screen[1]"
Device "Device[1]"
Monitor "Monitor[0]"
DefaultDepth 16
Option "ConstantFrameRateHint" "1"
Option "Coolbits" "1"
Option "MultiGPU" "Auto"
Option "SLI" "Auto"
SubSection "Display"
Depth 15
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x1024_60" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen[2]"
Device "Device[0]"
Monitor "Monitor[0]"
DefaultDepth 16
Option "ConstantFrameRateHint" "1"
Option "TwinView"
Option "SecondMonitorHorizSync" "30-110"
Option "SecondMonitorVertRefresh" "50-160"
Option "TwinViewOrientation" "RightOf"
# Option "PerformanceMonitorMode" "1"
Option "MetaModes" "1280x1024,1280x1024 ; 1280x1024_60,1280x1024_60"
# Option "MetaModes" "1600x1200_60,1600x1200_60 ; 1280x1024,1280x1024
; 1280x1024_60,1280x1024_60"
Option "ConnectedMonitor" "CRT,CRT"
Option "Coolbits" "1"
SubSection "Display"
Option "MultiGPU" "Auto"
Option "SLI" "Auto"
Depth 15
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x1024_60" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/