View previous topic :: View next topic |
Author |
Message |
pvangarde n00b
Joined: 18 May 2005 Posts: 71
|
Posted: Fri Feb 23, 2007 8:30 am Post subject: warcraft 3 (wine) slow with opengl [SOLVED] |
|
|
Hello.
I installed wine 0.9.29 the other day and in it installed war3 tft. I removed the movies folder so that it wouldn't cause problems. Running wine "Frozen Throne.exe" -opengl gave me a black screen. Then I emerged wine 0.9.16 as I saw most people reported war3 ran well on this version (winehq). Now running wine "Frozen Throne.exe" -opengl starts the game fine, however, it is really slow, almost like there's no opengl acceleration.
I'm running amd64, gentoo 2.6.18 kernel, ati xpress 200m (8.32.5 drivers). [SOLUTION: this driver set is buggy]
The funny thing is that the game runs slightly better when i'm in XGL mode. Normally I exit XGL and startx, where glxinfo reports that direct rendering is enabled and I get smooth glxgears with 1600fps.
When I run the game in XGL mode, I obviously get and error that XFree86-DRI is missing on display :0.
Anyone know how to fix this issue?
(Note: crossover doesn't even start the game, I get some fatal error exception).
(Note: running the game without -opengl is even more retarded).
(Note: i patched war3 to version 1.21)
Last edited by pvangarde on Tue Feb 27, 2007 3:59 am; edited 1 time in total |
|
Back to top |
|
|
pvangarde n00b
Joined: 18 May 2005 Posts: 71
|
Posted: Fri Feb 23, 2007 8:37 am Post subject: |
|
|
Code: |
emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-ge
ntoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Turion(tm) 64 Mobile Technology ML-37
Gentoo Base System version 1.12.1
Timestamp of tree: Mon, 19 Feb 2007 03:29:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -mmmx -m3dnow -msse -msse2 -mfpmath=sse,387 -msse3 -
ffast-math -pipe -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funs
witch-loops -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms
/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -mmmx -m3dnow -msse -msse2 -mfpmath=sse,387 -msse3
-ffast-math -pipe -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -fu
nswitch-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms
strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo
"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di
stfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/xeffects/trunk /usr/local
/portage/xeffects/experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 avahi berkdb bitmap-fonts boost bzip cairo cdr cli crackl
ib crypt cups dbus dlloader dri esd flac fortran gdbm gnome gpm gstreamer gtk ha
l howl iconv ipv6 isdnlog jpeg jpeg2k kerberos keyring ldap libg++ libnotify mad
midi ncurses nls nptl nptlonly ogg opengl pam paste64 pcmcia pcre perl png ppds
pppd python readline reflection samba session spell spl ssl tagwriting tcpd tif
f toolbar truetype truetype-fonts type1-fonts unicode vorbis xorg zlib" ALSA_CAR
DS="atiixp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extp
lug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug ra
te route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" K
ERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtx
orb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU
AS, PORTAGE_RSYNC_EXTRA_OPTS
|
Code: | cat /etc/xorg.conf
Section "ServerLayout"
Identifier "Simple Layout"
Screen "aticonfig-Screen[0]" 0 0
InputDevice "TouchPad" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "USBMouse" "AlwaysCore"
EndSection
Section "Files"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/Type1/"
# ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "type1"
Load "speedo"
# This loads the GLX module
Load "glx"
# This loads the DRI module
Load "dri"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "freetype"
# Load "xtt"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "USBMouse"
Driver "mouse"
# Option "Device" "/dev/input/mouse2"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "TouchPad"
Driver "synaptics"
Option "Device" "/dev/input/mouse0"
Option "Protocol" "ExplorerPS/2"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "HoriScrollDelta" "100"
Option "MinSpeed" "0.09"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0015"
Option "ShmConfig" "true"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "BlockSignalsOnLock" "on"
Option "KernelModuleParm" "locked-userpages=0"
Option "mtrr" "on"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
|
Code: | glxinfo | grep rendering
direct rendering: Yes
|
|
|
Back to top |
|
|
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Fri Feb 23, 2007 2:28 pm Post subject: |
|
|
Strange issue. I have wine 0.9.31 and it works here. Why don't you upgrade to that version and try again? |
|
Back to top |
|
|
pvangarde n00b
Joined: 18 May 2005 Posts: 71
|
Posted: Fri Feb 23, 2007 10:46 pm Post subject: |
|
|
01mf02 wrote: | Strange issue. I have wine 0.9.31 and it works here. Why don't you upgrade to that version and try again? |
Is your system x86 or x86_64?
I am not running wine in 32bit mode in a chrooted environment, I don't know if that matters or not. I'll post results when 0.9.31 compiles. |
|
Back to top |
|
|
pvangarde n00b
Joined: 18 May 2005 Posts: 71
|
Posted: Fri Feb 23, 2007 11:26 pm Post subject: |
|
|
Code: | setarch i386 -X wine "C:\\Games\\Warcraft III\\Frozen Throne.exe" -opengl -window
err:ole:CoCreateInstance apartment not initialised
fixme:advapi:SetSecurityInfo stub
fixme:win:EnumDisplayDevicesW ((null),0,0x34f64c,0x00000000), stub!
err:wgl:get_fbconfig_from_visualid No fbconfig found for Wine's main visual (0x27), expect problems!
err:wgl:init_formats Can't get the FBCONFIG_ID for the main visual, expect problems!
err:wgl:ConvertPixelFormatWGLtoGLX invalid iPixelFormat 1
err:wgl:X11DRV_ChoosePixelFormat Can't find a matching FBCONFIG_ID for VISUAL_ID 0x27!
|
I run the command I get a permanent black screen. |
|
Back to top |
|
|
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Sat Feb 24, 2007 11:13 am Post subject: |
|
|
I have an AMD64 too, but I don't run the command in such a complicated way: I just switch to the Warcraft directory and run:
Code: | wine War3.exe -opengl |
Those are the only error messages that are displayed on the console - the game runs completely fine:
Code: |
err:ole:CoCreateInstance apartment not initialised
fixme:win:EnumDisplayDevicesW ((null),0,0x33f4d4,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f50c,0x00000000), stub!
fixme:xrandr:X11DRV_XRandR_SetCurrentMode Cannot change screen BPP from 32 to 16
err:wave:DSDB_MapBuffer Could not map sound device for direct access (Eingabe-/Ausgabefehler)
err:wave:DSDB_MapBuffer Please run winecfg, open "Audio" page and set
"Hardware Acceleration" to "Emulation".
fixme:sync:CreateIoCompletionPort (0xffffffff, (nil), 00000000, 00000000): stub.
|
I just saw that you have an ATI card - could that be a problem? Because I heard that ATI cards have worse Linux support than nVIDIA ones. |
|
Back to top |
|
|
pvangarde n00b
Joined: 18 May 2005 Posts: 71
|
Posted: Tue Feb 27, 2007 3:57 am Post subject: |
|
|
ATI support in Linux is close to horrible. I had almost no issues with my NVidia laptop, before I sold it to buy a "better" ati card laptop.
I resolved the problem by installing drivers directly from the amd/ati website (version 8.34.6). Now Warcraft actually works. However the graphics keep flickering, probably another driver issue. I hate ATI. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|