Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why are games that I install with wine so slow?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
cravengemetzel
n00b
n00b


Joined: 12 Mar 2012
Posts: 40

PostPosted: Thu Mar 07, 2013 4:33 am    Post subject: Why are games that I install with wine so slow? Reply with quote

I have an HP laptop with a quad-core AMD A8 (Opteron/K8 ) 64-bit CPU, and dedicated 2GB split/hybrid DDR3 Radeon graphics and 8GB of RAM. My entire system is compiled from source (obviously) so everything else runs lightning-fast. I use Openbox so it can't be a desktop environment consuming all my memory; with firefox open, ncmpcpp (mpd) playing, and a couple of urxvt terminals open conky registers a ~5-10% load on each of my CPUs. With Minecraft running on Wine and the above programs open, they register ~50-60%. I set the "radeon" useflag in /etc/make.conf, but with other DIY operating systems (including Gentoo) I have had trouble running X without xf86-video-fbdev, mesa, and xf86-video-vesa installed, so I have them as a precaution. (I really have no idea if the open-source radeon driver is working or not.) I have opengl and openal set in my /etc/make.conf, yet Minecraft runs slightly faster when I set openGL to OFF.

I had to install the Windoze-native binary of Java with Wine in order for Minecraft to even work, I don't know if this is where I went wrong?
I mean, I still have the gentoo with icedtea compiled as my "main" Java implementation.

Here are some specs:

Code:
$ uname -a
Linux fenrisulfr 3.8.0-hardened-r1 #1 SMP Tue Mar 5 00:02:05 EST 2013 x86_64 AMD A8-3510MX APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux

Code:
$ emerge --info
Portage 2.1.11.55 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.8.0-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.8.0-hardened-r1-x86_64-AMD_A8-3510MX_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2
KiB Mem:     7606816 total,   4737548 free
KiB Swap:    9912068 total,   9912068 free
Timestamp of tree: Thu, 07 Mar 2013 03:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6A harness to build OpenJDK using Free Software build tools and dependencies

sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfilfiles/ rsync://mirror.the-best-hosting.net/gentoo-distfiles http://mirror.the-best-hosting.net ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ rsync://mirrors.tera-byte.com/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
INSTALL_MASK=" "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk iconv imap ipv6 java jpeg kde kipi lame latex lcms ldap libnotify mad matroska mmx mng modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nptl offensive ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sasl scanner sdl semantic-desktop session spell sse sse2 sse3 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l vorbis wifi wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de fr sv_SE ru" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Code:
# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI BeaverCreek [Mobility Radeon HD 6620G]
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]
00:02.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
00:04.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
00:05.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
00:06.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03)
00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices [AMD] FCH SMBus Controller (rev 13)
00:14.1 IDE interface: Advanced Micro Devices [AMD] FCH IDE Controller (rev 40)
00:14.2 Audio device: Advanced Micro Devices [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] FCH PCI Bridge (rev 40)
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Whistler [AMD Radeon HD 6600M Series]
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
03:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)

Code:

# lsmod
Module                  Size  Used by
ipv6                  230090  26
snd_hda_codec_idt      46096  1
snd_hda_codec_hdmi     23960  1
arc4                    1839  2
snd_hda_intel          23549  1
snd_hda_codec          66100  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
brcmsmac              443388  0
cordic                   976  1 brcmsmac
brcmutil                2656  1 brcmsmac
mac80211              199426  1 brcmsmac
snd_hwdep               6165  1 snd_hda_codec
snd_pcm                65138  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
cfg80211              153977  2 brcmsmac,mac80211
snd_page_alloc          6530  2 snd_pcm,snd_hda_intel
snd_timer              19125  1 snd_pcm
rfkill                  9688  2 cfg80211
snd                    57618  8 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec,snd_hda_intel
r8169                  46860  0
acpi_cpufreq            6462  0
mperf                   1099  1 acpi_cpufreq
bcma                   25253  1 brcmsmac
mii                     3411  1 r8169
ehci_pci                3360  0
freq_table              2162  1 acpi_cpufreq
i2c_piix4               7459  0
video                  11055  0
thermal                 8297  0
processor              26403  5 acpi_cpufreq
kvm                   232007  0
battery                11604  0
thermal_sys            15063  3 video,thermal,processor
microcode             105193  0
joydev                 12916  0
ac                      3347  0
button                  4493  0
pcspkr                  1779  0
lrw                     3213  0
xts                     2799  0
gf128mul                5274  2 lrw,xts
ablk_helper             1604  0
cryptd                  6768  1 ablk_helper
aes_x86_64              7395  0
cbc                     2456  0
sha256_generic          9573  0
libiscsi               29544  0
scsi_transport_iscsi    33419  1 libiscsi
tg3                   123239  0
libphy                 17120  1 tg3
ptp                     8540  1 tg3
pps_core                6841  1 ptp
e1000                  87239  0
fuse                   57581  0
nfs                   101110  0
lockd                  52409  1 nfs
sunrpc                146899  2 nfs,lockd
jfs                   140168  0
multipath               5280  0
linear                  3199  0
raid10                 33838  0
raid456                47052  0
async_pq                2908  1 raid456
async_xor               2161  2 async_pq,raid456
xor                     7300  1 async_xor
async_memcpy            1166  1 raid456
async_raid6_recov       1249  1 raid456
raid6_pq               89526  2 async_pq,async_raid6_recov
async_tx                1702  5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
raid1                  23692  0
raid0                   6499  0
dm_snapshot            23358  0
dm_crypt               12825  0
dm_mirror              11179  0
dm_region_hash          6215  1 dm_mirror
dm_log                  7414  2 dm_region_hash,dm_mirror
dm_mod                 60734  4 dm_log,dm_mirror,dm_crypt,dm_snapshot
hid_sunplus             1401  0
hid_sony                2512  0
hid_samsung             2758  0
hid_pl                  1305  0
hid_petalynx            1874  0
hid_gyration            2020  0
usbhid                 27690  0
xhci_hcd               70783  0
ohci_hcd               19528  0
usb_storage            38796  0
ehci_hcd               31360  1 ehci_pci
usbcore               136786  7 usb_storage,hid_sony,ohci_hcd,ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common               850  1 usbcore
scsi_transport_fc      39385  0
scsi_tgt                8528  1 scsi_transport_fc
sx8                    10957  0
DAC960                 67102  0
sg                     24320  0
sata_inic162x           6345  0
ata_piix               21831  0
ahci                   20476  4
libahci                17458  1 ahci
pata_atiixp             4423  0
pata_amd               10083  0
pata_pcmcia             9693  0
pcmcia                 29187  1 pata_pcmcia
pcmcia_core            10509  1 pcmcia
pata_mpiix              2818  0
libata                142682  8 ahci,sata_inic162x,libahci,pata_amd,pata_atiixp,pata_mpiix,pata_pcmcia,ata_piix
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Mar 07, 2013 5:53 am    Post subject: Reply with quote

AFAICT, Wine is slow mainly because wineserver is a separate app. Wine has an interesting architecture.

Edit: A choice quote:
Quote:
With this hack... roughly 10x faster.


Last edited by PaulBredbury on Thu Mar 07, 2013 12:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Mar 07, 2013 5:57 am    Post subject: Reply with quote

first, for proper radeon usage you need to configure kms (including the right fw) in the kernel and install mesa, libdrm and xf86-video-ati.

as your card is relativly new, I'd recommend going live on the mentioned above pkgs and latest unstable kernel.

wine is a windows to linux api, not all of it is implemented and some might be missing, also there are some opengl extensions that might be needed and aren't implemented.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Thu Mar 07, 2013 6:01 am    Post subject: Reply with quote

Wine basically works by translating windows system calls into linux system calls. This takes some time. On some games, like Star Trek: Bridge Commander, this does not significantly affect the speed. Some games, like Myst, slow down.

You can check the winehq wiki FAQ for more. I would post a link, but it seems to be down.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Thu Mar 07, 2013 11:27 am    Post subject: Reply with quote

Minecraft is available natively via overlays

see http://gpo.zugaina.org/Search?search=minecraft

and for info on using overlays

http://www.gentoo.org/proj/en/overlays/userguide.xml
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Thu Mar 07, 2013 11:30 am    Post subject: Reply with quote

I forgot to mention there is an extensive forum thread dedicated to minecraft as well

https://forums.gentoo.org/viewtopic-t-857083-highlight-minecraft.html
Back to top
View user's profile Send private message
cravengemetzel
n00b
n00b


Joined: 12 Mar 2012
Posts: 40

PostPosted: Sat Mar 09, 2013 6:04 am    Post subject: Reply with quote

So I isntalled the java-overlay, ran into a few mask issues but resolved them, then I started minecraft and it said that the game was not downloaded (as expected, as the ebuild is for dependencies only). Then I looked at what was in ~/.minecraft, and copied the missing files from my install with wine to the ~/.minecraft directory, and the game is still slow and unplayable?
I omitted copying any files in the ~/.minecraft/bin/natives, and left ~/.minecraft/bin/lwgl.jar untouched as these were built by the ebuild to be compatible with Linux, I have no idea if this was the right way to do this or not.
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Sat Mar 09, 2013 9:41 am    Post subject: Reply with quote

I haven't had it installed in some time so I would recommend posting your issues in the dedicated forum thread above, they seem quite responsive
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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