frame/graphics lag in microsoft Freelancer

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

frame/graphics lag in microsoft Freelancer

Post by Basinator »

Huhu,
I installed MS Freelancer via PlayOnLinux, but I have some graphics lags ingame/the game was redicoulus slow, I also wasn't really able to start a new game since the game hang up (kinda. It just didn't wanted to finish loading)

One idea of me would be that it still runs in DX mode, how can I change it to OpenGL?

On a side note, I have enough ressources to run the game at windows.
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

bump
hellork
Level 3
Level 3
Posts: 82
Joined: Thu Mar 27, 2008 7:13 pm

Re: frame/graphics lag in microsoft Freelancer

Post by hellork »

Versions, please. These wine people don't support PlayOnLinux. Can you run it with plain old wine version 1.1.41 or greater?

Usually graphics slowness on wine is due to the underlying Linux system drivers. Can you run glxgears? What FPS does it report?
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

Where can I see the wine version @ POL?

I can run glxgears and it seems to be fine:
bas@Ubuntu:~$ glxgears
6908 frames in 5.0 seconds
6999 frames in 5.0 seconds
6819 frames in 5.0 seconds
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 66220 requests (52569 known processed) with 0 events remaining.


But I also found this tutorial (I found the one at the APPDB a bit too complicated tbh, I am a linux newbee):
http://freelancercommunity.net/viewtopi ... =2466#2466

Will try and report.

But thanks for your help!
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

Edit: I ran into one problem.


First off: Nice and very good tutorial. But I ran into some errors and I am not sure if they will have a negative impact later:
Gallows wrote:
Step 3

Open terminal
type winetricks
A new window will pop open with a bunch of boxes to check
Install each of the following: (I suggest running each install individually to prevent any errors)
DirectX9
Error message for DirectX9:

Code: Select all

bas@Ubuntu:~$ winetricks
fixme:ole:DllRegisterServer stub
You probably shouldn't be using this. It's VERY invasive.
Use 'winetricks d3dx9' instead.
Setting Windows version to win2k
Executing early_wine regedit c:\winetrickstmp\set-winver.reg
Executing wine /home/bas/.winetrickscache/directx_aug2009_redist.exe /t:c:\winetrickstmp
fixme:advapi:DecryptFileA "c:\\winetrickstmp\" 00000000
Using native override for following DLLs: d3dim d3drm d3dx8 d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Using native override for following DLLs: d3dx9_30 d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dx9_37
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Using native override for following DLLs: d3dx9_38 d3dx9_39 d3dx9_40 d3dx9_41 d3dx9_42 d3dxof
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Using native override for following DLLs: dciman32 ddrawex devenum dmband dmcompos dmime dmloader dmscript dmstyle
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Using native override for following DLLs: dmsynth dmusic dmusic32 dnsapi dplay dplayx dpnaddr dpnet dpnhpast dpnlobby
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Using native override for following DLLs: dswave dxdiagn mscoree msdmo qcap quartz streamci
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Using builtin override for following DLLs: d3d8 d3d9 dinput dinput8 dsound
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Executing wine c:\winetrickstmp/DXSETUP.exe
err:setupapi:do_file_copyW Unsupported style(s) 0x144
err:setupapi:do_file_copyW Unsupported style(s) 0x144
err:setupapi:do_file_copyW Unsupported style(s) 0x144
[.....]

Clearing Windows version back to default
Executing early_wine regedit c:\winetrickstmp\unset-winver.reg
Install of directx9 done
winetricks done.
bas@Ubuntu:~$ Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"
Trying to load PE image for unsupported architecture (AMD-64)
err:rundll32:WinMain Unable to load L"streamci"


(Cross-Thread: http://freelancercommunity.net/viewtopi ... =3873#3873)
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

What part of plain wine don't you understand?

http://www.winehq.org/download

Gert
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

I guess you mean my "normal" wine version I use. It is 1.1.41

Unfortunally english isn't my native language so I wasn't totally sure how to interpret that term.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Plain Wine means an unmodified version of Wine that can be downloaded from this site or your distro's default package repository. Any versions of Wine (or their wineprefixes) that come with tools like PlayOnLinux are modified right from the start to work with whatever application you wanted to work. For example, it could install necessary extra libraries or override some internal Wine libraries.

Since this kind of thing interferes with the error/debug messages and basically makes Wine work a bit differently than in a "normal" clean-prefix scenario, this is why you're asked to test on a plain version of Wine with a clean prefix.

http://wiki.jswindle.com/index.php/Wine_Prefixes is an article on what a Wineprefix is, anyway.
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

DaVince wrote:Plain Wine means an unmodified version of Wine that can be downloaded from this site or your distro's default package repository. Any versions of Wine (or their wineprefixes) that come with tools like PlayOnLinux are modified right from the start to work with whatever application you wanted to work. For example, it could install necessary extra libraries or override some internal Wine libraries.
Well, I have tried to install Freelancer both with POL and with "wine only" - The error messages are from wine only (Freelancer) install, without POL.

I guess I wasn't clear enough by myself,
this (http://forum.winehq.org/viewtopic.php?p=41849#41849) wasn't with POL but with the normal wine.

(The tutorial is also about wine and not PlayOnLinux)
But as far I have understand you POL also changes the way how wine normally works (plus I also used winetricks....). So what do I have to do exactly to get a "clean wine"? I also fear that Warcraft III won't work then anymore if all things I changed with wine are getting undone (results in crashes while saving the game in warcraft III, battle.net/multiplayer problems and so on....)
Or are you just referring to a other way to execute wine?

I also talked with a friend of mine and he said that most of the errors are stubs/fixmes.

But there is also a other thing, I am not sure but I believe this problem occured when I used winetricks and checked dx stuff...when I launch a wine application 2 windows pop up, one about "a critical error" with dxdllreg.exe (I "worked around" it by removing it from the registry (with backups of course) and the other window is Internet Explorer with the address http:///RegServer opened. I am not sure if the last one still exists, but I guess it won't harm to mention those bugs.

So shall I just re-try the winetricks thingy?
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

On Thu, Apr 1, 2010 at 23:44, Basinator <[email protected]> wrote:
I guess I wasn't clear enough by myself,
this (http://forum.winehq.org/viewtopic.php?p=41849#41849) wasn't with POL but with the normal wine.
Sorry, the (probably) winetricks registry settings messages had me
thinking that they were from POL.
(The tutorial is also about wine and not PlayOnLinux)
But as far I have understand you POL also changes the way how wine normally works (plus I also used winetricks....). So what do I have to do exactly to get a "clean wine"? I also fear that Warcraft III won't work then anymore if all things I changed with wine are getting undone (results in crashes while saving the game in warcraft III, battle.net/multiplayer problems and so on....)
Install each appication in its own WINEPREFIX See
http://wiki.jswindle.com/index.php/WINEPREFIX That seperates their
settings completely
So shall I just re-try the winetricks thingy?
Try it first without winetricks after clearing out WINEPREFIX (Or
using a different WINEPREFIX)

That tutorial just seem to try overwriting the maximum amount of
things (there is no way that all that can be needed) with Microsft's
version. This ends in basically parts of Microsoft's DirectX, etc.
being run within wine, ussually resulting in more problems than it
solves. (The appdb HOWTO probably needs a proper redo...) (winetricks
directx9 should almost never be used, and it is unlikely to need ALL
the msxml versions...)

Post output. (It will probably crash the first time) Copy and paste
the messages given from a crash to a post.

Gert

Suggested command for setting WINEPREFIX (# starts a comment and can be ignored)
######## things need correct paths and filenames of course
######## This needs to be run in each terminal window before any wine
/ winetricks commands to work. (It is only needed once per window
though...)
export WINEPREFIX=~/.wine-freelancer # sets the variable. run this in
each terminal window before running any wine commands related to
freelander
rm -rf ~/.wine-freelander # to clear it out before testing new things.
Only run to restart testing
# To install
cd /where/setup/is
wine setup.exe # or whatever it is called
# to run it for testing
cd ~/.wine-freelander/drive_c/"Program Files/where gam is installed" #
quote things containing spaces. Press tab occationally to save typing
wine game.exe # to run game
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

Nah, I think it was my mistake for not making it clear enough that my second try (that one with the tutorial) wasn't with PlayOnLinux.



I had the feeling that I had a lot less "mouselag" than with POL/before in the menu, but as before I wasn't able to start Single Player since then it hang up. Nothing really happened and my whole machine was slowed down. I somehow killed the process then. (I can recall pressing ctrl + c in the console/terminal, but not sure if this one killed it). Other PRETTY minor problem was that my mouse cursor from Linux was also ingame.
I couldn't test MP since the ID which is necessary for it gets generated out of a few things, for instance windows user account name, game installation key (NOT a cd key...this game doesn't even has one, lol ^_^) and so on. But I forgot that I still have some old ones, I will insert them the next time when I try out MP.
The SP starts with a in space video (iirc it is not a video file but gets generated by the game world combined with some action scripts) and I can also remember that it was said some time ago that the menu of Freelancer works but the space not. At least not without configuring wine.

Unfortunally my terminal log is filled mostly with the same error message, which has deleted all previous lines. But I have increased the max. lines in the terminal dramatically now. Shall I re-try then now with the same procedure?

Anyways, here are the messages which are still left in the console:
[....all the same thing]
fixme:d3d:state_clipping Clipping disabled, but ARB_depth_clamp isn't supported.
fixme:d3d:state_clipping Clipping disabled, but ARB_depth_clamp isn't supported.
fixme:d3d:state_clipping Clipping disabled, but ARB_depth_clamp isn't supported.
fixme:d3d:state_clipping Clipping disabled, but ARB_depth_clamp isn't supported.
fixme:dpnet:IDirectPlay8ClientImpl_CancelAsyncOperation (0x14bf38):(0,2): Stub
err:ntdll:RtlpWaitForCriticalSection section 0xf8aa00 "?" wait timed out in thread 0009, blocked by 0026, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0xf8aa00 "?" wait timed out in thread 0009, blocked by 0026, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0xf8aa00 "?" wait timed out in thread 0009, blocked by 0026, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0xf8aa00 "?" wait timed out in thread 0009, blocked by 0026, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0xf8aa00 "?" wait timed out in thread 0009, blocked by 0026, retrying (60 sec)
But believe me, I am really, really thankful for your help!

Grüße zurück an Nachbarn Niederlande übrigens!
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

bump - I don't to sound offensive or to herass or to urge you with this, I just don't want to let this thread disappear. (Which would result in one of a few things, 1.) it stays dead and my problem would be still unsolved, 2.) I would have to bump it after an even longer time or 3.) I would have to open a new thread about the same problem)
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

I'm not very familiar with actually reading the logs and hoped someone
else might help with that...

So it runs, but slowly with the POL setup and prints lots of messages
in a clean Wine without any modifications?

winetricks d3dx9 MIGHT help for some of that... (It only uses the
parts of directX that Wine is know to have issues with) Winetricks
with the directplay one might fix LAN gaming if its broken...

From the stuff in the tutorial: Corefons might help if fonts are
broken. Probably harmless.

If anything complains about missing DLLs, vcrun6 might help..

The archive linked contains these files:
MoHaGLaptop:Downloads mohag$ tar -tzf FreelancerSys32.tar.gz
msxml3.dll
streamci.dll
winemp3.acm
dxdiagn.dll

if they are really needed, the first one can be installed with winetricks.

All the msxml versions that they refer to can't possibly be needed...
And a lot of those overwrites is probably unnecessay... (And
winetricks sets that for things that it installs)

The DirectdrawRenderer option might be what fixes all performance
issues.... It does have issues causing crashes on some display drivers
though... (Is shouldn't help for 3D games, only 2D, directdraw games,
such as red alert 2...)

If lots off messages are written and it runs fine further
WINEDEBUG=-all might speed it up... (run wine with
WINEPREFIX=whereever WINEDEBUG=-all wine commandname.exe (or export
some of it beforehand...))

It looks like a relatively old game, so that directx 9 files doesn't
seem likely to be really needed...

Gert
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

iirc Freelancer uses Directx8

Going to go sleeping now will read the rest later(/tomorrow
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

So it runs, but slowly with the POL setup and prints lots of messages
in a clean Wine without any modifications?
Yeah, but I believe that it also runs slow w/o POL, but not such slow as with POL.

]
winetricks d3dx9 MIGHT help for some of that... (It only uses the
parts of directX that Wine is know to have issues with) Winetricks
with the directplay one might fix LAN gaming if its broken...
AFAIK I need directplay for the internet gaming as well /info[/quote]
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

On Wed, Apr 7, 2010 at 09:42, Basinator <[email protected]> wrote:
AFAIK I need directplay for the internet gaming as well /info
[/quote]I should have called it mutiplayer....
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

On Wed, Apr 7, 2010 at 09:42, Basinator <[email protected]> wrote:
So it runs, but slowly with the POL setup and prints lots of messages
in a clean Wine without any modifications?
Yeah, but I believe that it also runs slow w/o POL, but not such slow as with POL.
You can try disabling debug info....

I don't think that Freelancher has an OpenGL mode like Warcraft...
(Which helps a lot for performance)

You might try getting rid of Compiz ("desktop effects"), and tuning
your display drivers to speed it up...

Gert
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

I deactivated the desktop effects already since I had problems with them even earlier on with Warcraft III

So I just will re-try with another wine prefix and will post the full log here then, eh?
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

Complete error log this time:
http://nopaste.info/2408cda31b.html

But this time I didn't made it bejond the intro/loading screen (so I didn't reach the main menu)
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

On Thu, Apr 8, 2010 at 16:54, Basinator <[email protected]> wrote:
Complete error log this time:
http://nopaste.info/2408cda31b.html
Graphics card and drivers? Also Linux distro? (You also need 32-bit
OpenGL libraries)

# err:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is
using software rendering, most likely your OpenGL drivers haven't been
installed correctly

The output of this should help: (Exact charcters as below)
glxinfo |egrep '^OpenGL.*string|^direct rendering:'
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

ATI Radeon 9550

Where can I see my video card's driver?

bas@Ubuntu:~$ glxinfo |egrep '^OpenGL.*string|^direct rendering:'
direct rendering: Yes
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RV350 4153) 20090101 AGP 8x x86/MMX+/3DNow!+/SSE2 TCL
OpenGL version string: 1.5 Mesa 7.6
bas@Ubuntu:~$
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

On Fri, Apr 9, 2010 at 00:34, Basinator <[email protected]> wrote:
ATI Radeon 9550

Where can I see my video card's driver?

bas@Ubuntu:~$ glxinfo |egrep '^OpenGL.*string|^direct rendering:'
direct rendering: Yes
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RV350 4153) 20090101 AGP 8x x86/MMX+/3DNow!+/SSE2 TCL
OpenGL version string: 1.5 Mesa 7.6
bas@Ubuntu:~$
That is the open source radeon driver, which is not perfect, but not
completely useless either (afaik, the old radeon's driver support for
modern X versions was dropped by ATI)

It still shouldn't say software rendering AFAIK? (someone that
actually knows Wine D3D, please comment)

The driver might be the cause of the performance issues though, with
no real solution not involving hardware updates...

32-bit libraries can still be an issue though... And I can't remember
how to check that / install them if they are missing...

Gert
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

You might try IRC... I'm out of idea's for now... (And was away from
proper internet for about a week ;) )

http://www.winehq.org/irc

It might be that they see that the thread have been replied on without
actually reading it...
Basinator
Level 3
Level 3
Posts: 68
Joined: Sat Jan 30, 2010 8:27 am

Post by Basinator »

Ty, might try tomorrow/in the next days.
(And was away from
proper internet for about a week Wink )
OMFG :( Sry to hear that, no internet? OMG it must be 2012!!
Gert van den Berg

frame/graphics lag in microsoft Freelancer

Post by Gert van den Berg »

On Mon, Apr 19, 2010 at 00:00, Basinator <[email protected]> wrote:
OMFG :( Sry to hear that, no internet? OMG it must be 2012!!
Cellphone only... (Easily at least...) (I'm in South Africa and
visited someone without ADSL (a student) with 3G as primary (but
expensive) internet option...))

(Opera Mini rule, but replying to mailing lists on my phone is not fun...)
Locked