[Bug 12453] Bad performance in Source based games

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jan 6 00:07:59 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=12453


Paul "TBBle" Hampson <Paul.Hampson at Pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Paul.Hampson at Pobox.com




--- Comment #14 from Paul "TBBle" Hampson <Paul.Hampson at Pobox.com>  2009-01-06 00:07:59 ---
(In reply to comment #8)
> Created an attachment (id=18409)
 --> (http://bugs.winehq.org/attachment.cgi?id=18409) [details]
> Small sRGB hack
> 
> The attached patch should give a significant performance improvement to most
> source engine based games. It's also obviously incorrect, of course.

If I'm following that patch correctly, then it simply disables support for the
SRGB_TEXTURE sampler state, which seems to overly brighten everything when
applied to Warhammer Online (which seems to suffer the same bug except in
texture, not cubetexture.). I guess that makes sense, since it's disabling the
sRGB->linear conversion in the texture sampler, since linear values are lower
than the sRGB value for the same colour. (Assuming I've got sRGB correct...)

If I'm understanding the code and specs correctly, then the problem is that D3D
lets the sampler have sRGB->linear conversion turned on and off whenever it
likes, while OpenGL requires a reload of the relevant texture with a different
format.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list