Guild Wars 2 for wine - what is needed?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

FYI - FFMPEG is deprecated, now you're supposed to use avconv

Code: Select all

avconv \
-f x11grab -r 30 -s hd1080 -i :0.0 \
-f alsa -ac 2 -i pulse \
-vcodec libx264 -vf 'scale=-1:720' -pre:v lossless_ultrafast \
-acodec libmp3lame \
-y out.avi
Lot faster than ffmpeg too
kevin89
Level 1
Level 1
Posts: 8
Joined: Fri Apr 27, 2012 3:37 pm

Post by kevin89 »

Could you also post your winecfg and other possible tweaks if your game runs at a decent rate?

For example, emulate virtual desktop? Which windows version etc?

Still trying to get my framerate up..
Astohan
Level 1
Level 1
Posts: 8
Joined: Wed Apr 25, 2012 6:14 am

Post by Astohan »

Well, Winecfg is set to Windows 7, no emulate virtual desktop.

I am using one specific regedit tweaks I did for Guild Wars 1:
UseGLSL=disabled

If set on enable, this option causes low framerate each time I turn the camera, at least on GW1 (I don't want to test if it's still true for GW2).
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

Using stock 1.5.1 /w VideoMemorySize=2048 and it works like a charm.

No other tweaks (AlwaysOfsscreen, UseGlsl etc) did anything of note. It's really the game's performance that's the problem.
Illiander
Level 2
Level 2
Posts: 16
Joined: Thu Apr 26, 2012 12:53 pm

Post by Illiander »

Is anyone else getting an occasional crash while playing, rather than when downloading?
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

I got fairly frequent (one an hour or so) crashes before setting video memory manually, try that.

Since then I've had maybe 2 in 10 hours of gameplay
Chris-WF
Level 2
Level 2
Posts: 30
Joined: Sun Dec 12, 2010 5:30 am

Post by Chris-WF »

Hi, i don't know if it's disabled in the 2704-Beta or it is a wine-Bug:

No ingame-shop and no Market-Place between Players (the auctioneers) are available.

The Player should send or sale items from his daily work during gameplay - and i can't do this.

Reason could be a Server-Termeout but there are pictures available from this shop, cause this Beta have no NDA. So i suppose Wine have some bugs.
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

KNOWN ISSUES

Commerce
The Gem Store and the Trading Post may not be viewable by some players.
I wouldn't worry about it just yet.
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

http://www.youtube.com/watch?v=-g6smwwtSEo - 10 minutes of linux gameplay (With commentary)

Perfect. Flawless. Fantastic.

Nuff said.
lensor
Level 2
Level 2
Posts: 13
Joined: Thu Mar 22, 2012 4:00 pm

Post by lensor »

J V wrote:http://www.youtube.com/watch?v=-g6smwwtSEo - 10 minutes of linux gameplay (With commentary)

Perfect. Flawless. Fantastic.

Nuff said.
Can I ask how you recorded that? I get the same flawless performance in-game, but cannot seem to record it proper (choppy video and out-of-sync sound :( ).

I have tried to specifically look at things like shadows, reflections, zooming, texture changes etc. Basically stuff that works "iffy" for GW1 (which uses the same basic engine), but everything looks really good. :)

My setup for the interested:
wine 1.5.3, emulating Win7 (allow the windows manager to capture the window, no special regedits etc)
Pulseaudio
Linux 3.3.3-1-ARCH
Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz GenuineIntel GNU/Linux
Nvidia GeForce GTX570 (driver version 295.40)
12 (6x2) GB 1333 MHz
SSD HD
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

I recorded with avconv (ffmpeg's new version)

You need a compositing window manager for it to turn up right as it pulls straight from xorg rather than buffering or drawing from the game.

Suffice to say: It's one fast recorder :)

(PS: Shadows work fine in GW1 on the latest nvidia driver I've found)

This is the script I used, I'll go over each line for you:

Code: Select all

#!/bin/bash
avconv \
-f x11grab -r 30 -s hd1080 -i :0.0 \
-f alsa -ac 2 -i pulse \
-f alsa -ac 2 -i hw:0,0 \
-map 0:0 -map 1:0 -map 2:0 \
-vcodec libx264 -vf 'scale=-1:720' -pre:v lossless_ultrafast \
-acodec libmp3lame \
-y $@

Code: Select all

avconv \
# start the program
-f x11grab -r 30 -s hd1080 -i :0.0 \
# Create input type "x11grab" framerate 30 size 1080p (Lots of options and manual available there) input from :0.0 server
-f alsa -ac 2 -i pulse \
# Create audio input type "alsa" with 2 channels from "pulse" (Set default pulse input to "Monitor of internal audio" or set it manually in recording tab after starting recorder)
-f alsa -ac 2 -i hw:0,0 \
# Record audio from mic in a separate track (Makes editing a breeze)
# You can find which audio device this is with arecord -l
-map 0:0 -map 1:0 -map 2:0 \
# Just map them out so that it actually uses both audio tracks not just the one
-vcodec libx264 -vf 'scale=-1:720' -pre:v lossless_ultrafast \
# encode with libx264, automatically scale to 720p on the fly (something is bottlenecking me at 26fps if I record full 1080p and I'd rather have a smaller 30fps)
# Video preset is "lossless_ultrafast" - creates a huge file but does it quickly, you can slim it down later.
-acodec libmp3lame \
# mp3 audio codec
-y $@
# Automatically overwrite and put the script options at the end (For manual tweaking and choosing which file to record to)
virion
Level 1
Level 1
Posts: 9
Joined: Fri Mar 23, 2012 6:41 pm

Post by virion »

Could you confirm if Trade Post / Gem Store working for you?
I only saw blank pages/ tabs.

Someone mentioned that this could be related to wine or server problems during BWE.

http://forum.winehq.org/viewtopic.php?t=15121

Thanks
oly
Newbie
Newbie
Posts: 1
Joined: Sun Apr 29, 2012 9:57 am

Post by oly »

I have to say it is running very well, only real crash was the downloader and general performance could be better currently running on two linux boxes perfectly fine though :)

Anyone running any guilds for us linux players ?
lensor
Level 2
Level 2
Posts: 13
Joined: Thu Mar 22, 2012 4:00 pm

Post by lensor »

virion wrote:Could you confirm if Trade Post / Gem Store working for you?
I only saw blank pages/ tabs.

Someone mentioned that this could be related to wine or server problems during BWE.

http://forum.winehq.org/viewtopic.php?t=15121

Thanks
This is a know problem happening to loads of my windows-using guildies as well so should not be wine-related.
kevin89
Level 1
Level 1
Posts: 8
Joined: Fri Apr 27, 2012 3:37 pm

Post by kevin89 »

J V, your games runs smooth, I'm impressed!

Astohan, I have what you describe: my framerate approaches 0 when I turn the camera. However, if I set USEGLSL to disabled, Gw2.exe won't start up with the message that my videocard is unsupported hardware. Any thoughts?
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

Did you try setting VideoMemorySize? Seriously, I had tons of bugs slow turning, dynamic objects flickered black with no lighting when turning etc until I set that.

Look at direct3d in http://wiki.winehq.org/UsefulRegistryKeys
Astohan
Level 1
Level 1
Posts: 8
Joined: Wed Apr 25, 2012 6:14 am

Post by Astohan »

Kevin89, follow the instructions given by J V.
If it solved nothing, you should try to disable the Reflections in the Options panel from the game.

I have a command line that shows the fps/framerate of any game running with wine.
First you have to install xosd, in a terminal:

Code: Select all

sudo apt-get install xosd-bin
Then you go into the directory where the Gw2.exe file is. If it is located in the GW2 folder in your Documents folder:

Code: Select all

cd ~/Documents/GW2
Then you launch the game with the command:

Code: Select all

WINEDEBUG=+fps wine Gw2.exe 2>&1 | tee /dev/stderr | grep --line-buffered "^trace:fps:" | osd_cat --font="-sony-*-medium-*-*-*-20-*-*-*-*-*-jisx0201.1976-*" --lines="2"
You should see two red lines displaying the framerates. The last one (swapchain_gl_present) should be the correct value of your framerate.

Hope it helps ! And hope it works for you too !
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

Ooh, that's a nice debug option. It shows me standing still at a waypoint getting 45-55 fps... Nice!
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

Yeah wow: 45+ fps in kessex hills, 17 - 22 fps staring up dwayna's road in divinities reach, which I would assume is the slowest part of the game.
kevin89
Level 1
Level 1
Posts: 8
Joined: Fri Apr 27, 2012 3:37 pm

Post by kevin89 »

Thanks alot for your helpful replies!

I've added the recommended reg keys and set VideoMemorySize to 1024, used xosd to monitor my fps. When standing still, I get 10 fps, and when turning I get 0-1 fps. Disabling reflections (or lowering any of the other options) don't seem to influence the fps.

The only reg key I can't add is the UseGLSL=disabled, because my game won't start then.

Maybe ATI doesn't play nice with GW2..
Astohan
Level 1
Level 1
Posts: 8
Joined: Wed Apr 25, 2012 6:14 am

Post by Astohan »

kevin89, the AMD/Ati drivers are generally poorly implemented in Linux and suffer from many problems.

In your case, it all depends on the model of your card and the driver you're using (the one from your distro or the official from the Ati site ?).

But I insist on the fact that the current beta session of GW2 is more a CPU stress test. In other words, whatever your GPU is, the most important part for good framerates is the CPU.
kevin89
Level 1
Level 1
Posts: 8
Joined: Fri Apr 27, 2012 3:37 pm

Post by kevin89 »

I do realise ATI doesn't always perform great on Linux. I'm using Archlinux, catalyst driver 12.4 from repos, my card is a HD6870 1G. My cpu is a AMD X4 955 BE at stock speeds.

While it isn't the fastest CPU out there, it still is very decent I think. You are right though, maybe it's best to wait until the GPU is used more.

Too bad, hoped that I could enjoy the beta some. Oh well, more to come! Thanks for the advices!
Codin
Newbie
Newbie
Posts: 2
Joined: Sun Apr 29, 2012 2:09 pm

How do I get a better framerate in GW2

Post by Codin »

@kevin89, @J V
I am displaying my framerate using some commands from this thread and it will drop around 1 when there are a lot of people around or I am running around outside the city. Sometimes is happens in a city as well. I was wondering what registry keys you changed to help with the framerate.
As someone else said here I tried the UseGLSL=disabled but then GW2 won't start.
lensor
Level 2
Level 2
Posts: 13
Joined: Thu Mar 22, 2012 4:00 pm

Post by lensor »

Astohan wrote:Don't worry Tristanlogd, I have the same issue, and it's normal: Wine just can't render correctly weather effects ingame, such as rain, snow, smog. The Norn area is the most concerned by this issue though.
I don't know what your system/setting are like, but I have no problem getting beautiful snow/smoke/fire etc effects.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Guild Wars 2 for wine - what is needed?

Post by jjmckenzie »

On Sun, Apr 29, 2012 at 11:04 AM, Astohan <[email protected]> wrote:
kevin89, the AMD/Ati drivers are generally poorly implemented in Linux and suffer from many problems.

In your case, it all depends on the model of your card and the driver you're using (the one from your distro or the official
from the Ati site ?).
You have to use the Catalyst drivers for your ATI video card. The
open source drivers do not include enough functions to work with Wine.

James
Locked