Transform & Lighting (T&L) in wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Envil
Newbie
Newbie
Posts: 3
Joined: Wed Jan 28, 2009 10:08 am

Transform & Lighting (T&L) in wine

Post by Envil »

Im looking for some information on how wine supports hardware T&L.
I play the game Lineage 2 which makes use of this, however when playing trough wine the fps is rather low.
The game has an option to enable/disable hardware T&L, disabling it on windows gives the same decrease in framerate as i have on linux.

On linux however there is no difference in enabling/disabling it which makes me assume that wine only supports software T&L.
Am i right with this assumption or could the issue be something else such as GPU drivers (nvidia in my case) ?
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

We barely have any software emulation and forward everything to OpenGL. That said the implementation of some older 3D stuff might not be that efficient. Typically more modern 3d things are easier to map on OpenGL.
James_Huk
Level 2
Level 2
Posts: 45
Joined: Tue Feb 23, 2010 4:59 pm

Post by James_Huk »

@Thunderbird:

Honestly speaking I think that either the mapping of some functions is wrong or there is no mapping for this at all ;]. I know that in Max Payne 1/2 there is/was no difference whatsoever with Hardware T&L enabled or disabled - and there should be HUGE difference even if we take all mappings wine have to do.

On the other hand, in Operation Flashpoint, enabling T&L give us pretty huge speed boost... this is really weird why enabling T&L works on some apps, and fails on others, it is even more weird for those games since all of them are D3D 8/9...
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

While I don't know this area of our code. If I remember it right OpenGL already offered T&L support years before DirectX received it and hyped it. I'm quite sure we are implementing it in the right way. Who says that the OpenGL drivers are accelerating this well? Further on modern GPUs old legacy functionality is emulated anyway and not all of the GPU is used during this emulation.
Envil
Newbie
Newbie
Posts: 3
Joined: Wed Jan 28, 2009 10:08 am

Post by Envil »

Is there any debug channel or something i could use to see if T&L is using the hardware or if its being run on the cpu?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Envil wrote:Is there any debug channel or something i could use to see if T&L is using the hardware or if its being run on the cpu?
Not really. Start from what your video card and drivers you are using?
Envil
Newbie
Newbie
Posts: 3
Joined: Wed Jan 28, 2009 10:08 am

Post by Envil »

vitamin wrote:
Envil wrote:Is there any debug channel or something i could use to see if T&L is using the hardware or if its being run on the cpu?
Not really. Start from what your video card and drivers you are using?
Geforce GTX 285 with Nvidia driver 195.36.15 and on the other PC a Geforce 7600 GT with driver 173.*.*

I already tested various driver versions which did not make any change.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Envil wrote:Geforce GTX 285 with Nvidia driver 195.36.15 and on the other PC a Geforce 7600 GT with driver 173.*.*
Then your game wants something very old that was available with first generation of T&L cards (fixed function texture stages & co). But now no longer used by any program since it was replaced with shaders. Wine having issues with fixed functions as most of that needs to be emulated on newer HW.
Locked