Pacific General (1997) Runs extremely slow

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ninjaplease2005
Newbie
Newbie
Posts: 3
Joined: Tue Mar 11, 2008 12:14 pm

Pacific General (1997) Runs extremely slow

Post by ninjaplease2005 »

Pacific General (1997), a direct X 3 game, runs extremely slow on my modern hardware under Ubuntu 7.10 with either an NVIDIA 8800GT or ATI X800GTO.

It obviously is not my system as the bottleneck. The entire game runs, however it is extremely slow when moving the mouse over any units, or when clicking on any units.

This could be sound related, or MouseOver API related, or both. My sound works fine on any other game run through wine.

Wine rev tested was 0.9.46 and 0.9.54, both ran just as slow.
Erik Hahn

Pacific General (1997) Runs extremely slow

Post by Erik Hahn »

Being 10 years old, it could run reasonably fast in a full virtual machine
like VIrtualBox or vmware. Have you created an entry in the AppDB?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Pacific General (1997) Runs extremely slow

Post by vitamin »

ninjaplease2005 wrote:The entire game runs, however it is extremely slow when moving the mouse over any units, or when clicking on any units.
Some old games used really bad ways to draw cursor (mixing ddraw with gdi, redrawing entire screen). For Wine it's the worst thing possible - it has to do multiple round trips to X server and back for each draw operation. This is without going into details.

There are not much you can do about this. If there is a way for the game to disable it's cursor and use standard system cursor - try it. If that does not work - you might have to wait for the Wine's own DIB engine which might (or might not) fix the problem.
ninjaplease2005
Newbie
Newbie
Posts: 3
Joined: Tue Mar 11, 2008 12:14 pm

Re: Pacific General (1997) Runs extremely slow

Post by ninjaplease2005 »

vitamin wrote:
ninjaplease2005 wrote:The entire game runs, however it is extremely slow when moving the mouse over any units, or when clicking on any units.
Some old games used really bad ways to draw cursor (mixing ddraw with gdi, redrawing entire screen). For Wine it's the worst thing possible - it has to do multiple round trips to X server and back for each draw operation. This is without going into details.

There are not much you can do about this. If there is a way for the game to disable it's cursor and use standard system cursor - try it. If that does not work - you might have to wait for the Wine's own DIB engine which might (or might not) fix the problem.


I am pretty convinced that you're right: it's using the GDI and Direct X to draw. I will look into disabling the cursor, though I don't think it's possible.

Can I get some details on the DIB engine? Anyone working on it?
Dan Kegel

Pacific General (1997) Runs extremely slow

Post by Dan Kegel »

On 3/13/08, ninjaplease2005 <[email protected]> wrote:
Can I get some details on the DIB engine? Anyone working on it?
See http://bugs.winehq.org/show_bug.cgi?id=421

Alexandre said at wineconf 2007 that he'd be ok releasing
wine 1.0 without one, but there is a lot of interest in it.
There was even one implemented for Summer of Code
last year, but I think Alexandre didn't like the approach that
was used, so anybody who works on this better check
with Alexandre before starting.
- Dan
ninjaplease2005
Newbie
Newbie
Posts: 3
Joined: Tue Mar 11, 2008 12:14 pm

Re: Pacific General (1997) Runs extremely slow

Post by ninjaplease2005 »

Dan Kegel wrote:On 3/13/08, ninjaplease2005 <[email protected]> wrote:
Can I get some details on the DIB engine? Anyone working on it?
See http://bugs.winehq.org/show_bug.cgi?id=421

Alexandre said at wineconf 2007 that he'd be ok releasing
wine 1.0 without one, but there is a lot of interest in it.
There was even one implemented for Summer of Code
last year, but I think Alexandre didn't like the approach that
was used, so anybody who works on this better check
with Alexandre before starting.
- Dan



I can certainly respect Alexandre's ideas, however, is the prototype dib engine available as a patch? I'd love to see ANY IMPROVEMENT.
Dan Kegel

Pacific General (1997) Runs extremely slow

Post by Dan Kegel »

ninjaplease2005 <[email protected]> wrote:
I can certainly respect Alexandre's ideas, however, is the prototype dib engine available as a patch?
There is an earlier prototype available as a patch,
but I think the new one is different.

It's a big job, please be patient.
Locked