GG2 slows down and takes a lot of CPU

Questions about Wine on Linux
Locked
BozoDel
Level 1
Level 1
Posts: 5
Joined: Sat Dec 08, 2012 10:16 am

GG2 slows down and takes a lot of CPU

Post by BozoDel »

I was pretty thrilled when I learned I could get sound working on WINE by installing directmusic and dsound through Winetricks (already made an entry on the appdb, waiting for it to be approved). But then there was the other problem.

I made the tests both on Mint 13 and Mint 15, 64-bit, NVIDIA current-updates driver, with similar results.

In any case, if I run a server, the CPU usage goes through the roof, and it runs slow. On Mint 13, it runs smooth, then stutters, then runs smooth, then stutters. On Mint 15, it just runs in plain half speed.

I also tried hosting a LAN game on a Windows machine and connecting from Linux. It runs swell over there. Here the graphics still stutter a bit, but it's playable, although I'm not sure how's it gonna be when there are more players.

Oh, before I forget, it uses very little of my graphics card (checked using nvidia-smi).

Any tips from you experienced folks?
BozoDel
Level 1
Level 1
Posts: 5
Joined: Sat Dec 08, 2012 10:16 am

Re: GG2 slows down and takes a lot of CPU

Post by BozoDel »

doohhhh can't believe I forgot to type the game's full name, it's Gang Garrison 2. It can be downloaded for free here: http://www.ganggarrison.com/
BozoDel
Level 1
Level 1
Posts: 5
Joined: Sat Dec 08, 2012 10:16 am

Re: GG2 slows down and takes a lot of CPU

Post by BozoDel »

One moooa thing I forgot to mention. I'm using WINE 1.6-rc4 from the WINE PPA on Mint 13, while in Mint 15 I tried the stock from Ubuntu repos (1.4.1 I think). Since Mint 13 was giving better results, it might be because of the WINE version.
BozoDel
Level 1
Level 1
Posts: 5
Joined: Sat Dec 08, 2012 10:16 am

Re: GG2 slows down and takes a lot of CPU

Post by BozoDel »

Did some testing with different drivers.

On Mint 13 the options for the NVIDIA drivers are:
Xorg
current (recommended)
current-updates (the one I was using)
experimental-304
experimental-310

I got the same results with all proprietary drivers, that is, bearable stutter. Actually, I'm not sure 310 even worked, as my screen looked a bit weird, then the computer rebooted on its own. I guess in went into some fallback mode. Using the Xorg driver, the game played at half speed.

On Mint 15 I had more options:
Xorg
304
304-updates (dunno why I was using this one)
310 (recommended)
310-updates
313-updates (where's regular 313?)

In this case, the Xorg driver doesn't work at all, a black screen of death. And this time I didn't try ALL the proprietary drivers, but most of them. I had trouble booting most of the times I changed drivers. The game would play slow, and sometimes crash on exit, with this crash report:
https://dl.dropboxusercontent.com/u/485 ... ktrace.txt
Updating to the latest WINE version didn't make any difference either.

Pretty weird.
User avatar
triso
Level 2
Level 2
Posts: 37
Joined: Mon May 18, 2009 8:30 pm

Re: GG2 slows down and takes a lot of CPU

Post by triso »

How much free RAM does your Linux system have? The stuttering sounds like swap problems.
BozoDel
Level 1
Level 1
Posts: 5
Joined: Sat Dec 08, 2012 10:16 am

Re: GG2 slows down and takes a lot of CPU

Post by BozoDel »

Total 4 GB RAM and 6 GB swap. There's a very small increase in RAM usage when I play the game, it still stays below 50%... unless maybe there's something limiting WINE's access to RAM?

Hmmm. I downloaded the Max Payne 2 demo, assuming it would be more RAM intensive... It used roughly the same amount of RAM, but not a problem, not even with the highest graphics quality. I might try some heavier game.
Locked