OpenGL test?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
szilagyic
Level 2
Level 2
Posts: 20
Joined: Thu Dec 04, 2008 12:39 pm

OpenGL test?

Post by szilagyic »

First off I just want to say thank you to all who contribute to wine, it is an awesome piece of software for the Linux community.

I am trying to find a way to do a simple OpenGL test within Wine. I have looked all over but I can't seem to find anything. What is the easiest way to test OpenGL and ensure that it's working correctly?

The reason I'm asking is this: I recently upgraded my PC from Fedora 8 (with Wine 1.1.5) to a fresh install of Fedora 10 (with Wine 1.1.7). I kept my .wine folder and simply put it into place after I installed Fedora. Now I cannot get Warcraft III to run well. It ran great before, and after this upgrade it runs extremely choppy (one screen refresh every 3 seconds or so). The sound works. I have Warcraft III forced to use OpenGL as noted in the winehq post on it -- I had it this way before when it was working well. I have tested OpenGL in X11 and it works (using glxgears and glxinfo). My system is a dual proc PIII, with the Voodoo5 5500 AGP card.

I would appreciate any help/feedback. Thank you!!

--
Chris
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: OpenGL test?

Post by vitamin »

szilagyic wrote:I am trying to find a way to do a simple OpenGL test within Wine. I have looked all over but I can't seem to find anything. What is the easiest way to test OpenGL and ensure that it's working correctly?

I have tested OpenGL in X11 and it works (using glxgears and glxinfo).
There is port of glxgears for Windows. This is the simplest way to test if OpenGL is functioning inside Wine. For example from here: http://lab.bachem-it.com/opengl/qtgears/
James McKenzie

OpenGL test?

Post by James McKenzie »

szilagyic wrote:
First off I just want to say thank you to all who contribute to wine, it is an awesome piece of software for the Linux community.

I am trying to find a way to do a simple OpenGL test within Wine. I have looked all over but I can't seem to find anything. What is the easiest way to test OpenGL and ensure that it's working correctly?

The reason I'm asking is this: I recently upgraded my PC from Fedora 8 (with Wine 1.1.5) to a fresh install of Fedora 10 (with Wine 1.1.7). I kept my .wine folder and simply put it into place after I installed Fedora. Now I cannot get Warcraft III to run well. It ran great before, and after this upgrade it runs extremely choppy (one screen refresh every 3 seconds or so). The sound works. I have Warcraft III forced to use OpenGL as noted in the winehq post on it -- I had it this way before when it was working well. I have tested OpenGL in X11 and it works (using glxgears and glxinfo). My system is a dual proc PIII, with the Voodoo5 5500 AGP card.

There may be issues with OpenGL support starting around Wine 1.1.7. Can
you revert to Wine 1.1.5 and see if this corrects the problem?

James McKenzie
English_Mohican
Level 2
Level 2
Posts: 18
Joined: Wed Nov 26, 2008 3:09 pm

Post by English_Mohican »

I thought I would try out the windows version of glxgears as suggested above. I downloaded the binary and ran it without a virtual window and got two boxes, one a text box and the other the graphics box where the gears normally appear. All that appeared was a static and torn graphic but the text box showed the normal "8000 frames in 5 secs.." type of messages.

Then I ran it in a virtual window and I got the same boxes as above but also got the gears - outside the virtual window and immediately to the left of the box it should have been inside.
Moving the box did not move the gears, but moving the virtual window did move the gears.

Is this a problem anybody recognises?

This is with Wine 1.1.9 on OpenSuse with an AMD 64 bit processor, ATI X700 graphics and the fglrx driver - and for example, Morrowind runs beautifully on it in wine.
szilagyic
Level 2
Level 2
Posts: 20
Joined: Thu Dec 04, 2008 12:39 pm

Post by szilagyic »

Thanks for all of the suggestions. They led me in the right direction and I ended up getting this issue fixed. I too was not able to get the Windows port of glxgears working, on mine it showed just a black screen with nothing. I found another OpenGL test app for Windows:

http://freewebs.com/mannymax/cpp/GLtest.html

Which worked, but very slow. After further looking, I discovered that DRI was in fact disabled in X11 for my card and was causing horrible fps rates with X11 glxgears in the text box (around 40 fps down to 15 fps when making the window the full size of the screen).

To fix the issue I had to run system-config-display in gnome, and select "Thousands of colors" for the color depth. Then, after restarting X11, it used color depth of 16 and after inspecting /var/log/Xorg.0.log it showed DRI as enabled now. I went back and glxgears now showed 450 fps and Warcraft III is now running perfectly!!

Also, I upgraded to wine 1.1.9 with the updated packages released by the Fedora team, and it is still working great.

Thanks again!!

--
Chris
johnnybob
Newbie
Newbie
Posts: 2
Joined: Thu Dec 11, 2008 1:19 pm

Hmmm

Post by johnnybob »

I thought that we were suppose to be around 22,000 fps You say in full screen you get 450 and in full sreen I get 700+ but My sli loading bar does not show load distrobution at all it just stays blank

can someone help me figure this thing out?

Asus Striker Extreme
Q6600
4GB corsair dominator 1066
2 8800 gt OC set up in sli mode
Mandriva Spring 2008.1 PwP i586 dual boot with 2009 64 PwP

this ? is for the 2008.1 1586 OS

I used the nvclock-gt3 to generate what i needed to insert the correct lines in the config is there suppose to be a "dri" in the load sequence?

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Thu Feb 14 18:20:37 PST 2008

# File generated by XFdrake (rev 234840)
# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerLayout"
Identifier "layout1"
Screen "screen1" 0 0
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection

Section "ServerFlags"

#DontZap # disable <Ctrl><Alt><BS> (server abort)
# allows the server to start up even if the mouse does not work
#DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
Option "allowmouseopenfail"
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "compose:rwin"
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
EndSection

Section "InputDevice"
Identifier "Mouse2"
Driver "evdev"
Option "device" "/dev/input/by-id/usb--event-mouse"
Option "HWheelRelativeAxisButtons" "7 6"
EndSection

Section "Monitor"

# Monitor preferred modeline (60.0 Hz vsync, 74.0 kHz hsync, ratio 16/10)
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "HP w2408"
HorizSync 24.0 - 94.0
VertRefresh 48.0 - 85.0
ModeLine "1920x1200" 154.0 1920 1968 2000 2080 1200 1203 1209 1235 -hsync +vsync
ModeLine "768x576" 50.0 768 832 846 1000 576 590 595 630
ModeLine "768x576" 63.1 768 800 960 1024 576 578 590 616
ModeLine "1920x1200_120" 412.3 1920 2080 2296 2672 1200 1201 1204 1286 -hsync +vsync
ModeLine "1920x1200_100" 337.6 1920 2072 2288 2656 1200 1201 1204 1271 -hsync +vsync
ModeLine "1920x1200_85" 282.7 1920 2072 2280 2640 1200 1201 1204 1260 -hsync +vsync
ModeLine "1920x1200_75" 246.6 1920 2064 2272 2624 1200 1201 1204 1253 -hsync +vsync
ModeLine "1920x1200_60" 193.2 1920 2048 2256 2592 1200 1201 1204 1242 -hsync +vsync
ModeLine "1920x1200_50" 158.1 1920 2032 2240 2560 1200 1201 1204 1235 -hsync +vsync
ModeLine "1680x1050_120" 313.2 1680 1816 2000 2320 1050 1051 1054 1125 -hsync +vsync
ModeLine "1680x1050_100" 256.2 1680 1808 1992 2304 1050 1051 1054 1112 -hsync +vsync
ModeLine "1680x1050_85" 214.5 1680 1800 1984 2288 1050 1051 1054 1103 -hsync +vsync
ModeLine "1680x1050_75" 188.1 1680 1800 1984 2288 1050 1051 1054 1096 -hsync +vsync
ModeLine "1680x1050_60" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
ModeLine "1680x1050_50" 120.2 1680 1776 1952 2224 1050 1051 1054 1081 -hsync +vsync
ModeLine "1600x1000_120" 284.0 1600 1728 1904 2208 1000 1001 1004 1072 -hsync +vsync
ModeLine "1600x1000_100" 232.1 1600 1720 1896 2192 1000 1001 1004 1059 -hsync +vsync
ModeLine "1600x1000_85" 194.2 1600 1712 1888 2176 1000 1001 1004 1050 -hsync +vsync
ModeLine "1600x1000_75" 169.1 1600 1704 1880 2160 1000 1001 1004 1044 -hsync +vsync
ModeLine "1600x1000_60" 133.1 1600 1704 1872 2144 1000 1001 1004 1035 -hsync +vsync
ModeLine "1600x1000_50" 108.7 1600 1688 1856 2112 1000 1001 1004 1029 -hsync +vsync
ModeLine "1440x900_120" 229.8 1440 1552 1712 1984 900 901 904 965 -hsync +vsync
ModeLine "1440x900_100" 187.6 1440 1544 1704 1968 900 901 904 953 -hsync +vsync
ModeLine "1440x900_85" 156.8 1440 1536 1696 1952 900 901 904 945 -hsync +vsync
ModeLine "1440x900_75" 136.5 1440 1536 1688 1936 900 901 904 940 -hsync +vsync
ModeLine "1440x900_60" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
ModeLine "1440x900_50" 87.4 1440 1512 1664 1888 900 901 904 926 -hsync +vsync
ModeLine "1280x800_120" 181.2 1280 1376 1520 1760 800 801 804 858 -hsync +vsync
ModeLine "1280x800_100" 147.9 1280 1376 1512 1744 800 801 804 848 -hsync +vsync
ModeLine "1280x800_85" 123.4 1280 1368 1504 1728 800 801 804 840 -hsync +vsync
ModeLine "1280x800_75" 107.2 1280 1360 1496 1712 800 801 804 835 -hsync +vsync
ModeLine "1280x800_60" 83.5 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
ModeLine "1280x800_50" 68.6 1280 1336 1472 1664 800 801 804 824 -hsync +vsync
EndSection

Section "Device"
Identifier "device1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce FX to GeForce 8800"
Option "NvAGP" "1"
Option "NoLogo" "1"
Option "ConnectedMonitor" "DFP"
Option "TVStandard" "PAL-B"
Option "TVFormat" "SVIDEO"
Option "SLI" "on"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultDepth 24
Option "DPMS"
Option "DynamicTwinView" "true"
Option "AddARGBGLXVisuals"

SubSection "Display"
Depth 8
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubSection
EndSection

Section "Extensions"
Option "Composite"
EndSection
Rico
Moderator
Moderator
Posts: 91
Joined: Sat Feb 23, 2008 12:10 pm

Post by Rico »

The executable from there (http://freewebs.com/mannymax/cpp/GLTest.exe) leaks memory here and the app gets very slow at 4GB virt memory. But did not crash on a short try.

trace:fps:X11DRV_SwapBuffers @ approx 10522.32fps, total 10811.51fps
trace:fps:X11DRV_SwapBuffers @ approx 10528.31fps, total 10792.63fps
trace:fps:X11DRV_SwapBuffers @ approx 6496.35fps, total 10523.10fps
trace:fps:X11DRV_SwapBuffers @ approx 105.44fps, total 9907.76fps
trace:fps:X11DRV_SwapBuffers @ approx 72.23fps, total 9358.85fps
trace:fps:X11DRV_SwapBuffers @ approx 45.70fps, total 8866.27fps
trace:fps:X11DRV_SwapBuffers @ approx 15.26fps, total 8422.48fps
Locked