aldehir / ut2004-patches

QoL patches for UT2004.
24 stars 1 forks source link

Some textures do not render when using OpenGL. #17

Open Gibitwit opened 1 month ago

Gibitwit commented 1 month ago

The textures for the bushes on the assault map Acatana do not render when using the patched OpenGL renderer here, or when using the original.

OpenGL plants

aldehir commented 1 month ago

@Gibitwit,

I'm afraid this is outside my area of expertise. Is there a particular reason why you cannot use the DirectX driver?

Gibitwit commented 1 month ago

I am playing on Linux, where I was using the Linux version of the game which as far as I know can only use the OpenGL option.

However I am now using the windows version of the game on Linux with these patches applied. See here for more information. https://github.com/ValveSoftware/Proton/issues/187

aldehir commented 1 month ago

Ah, ok.

I believe rebuilding natively for Linux is the best solution for the poor frame rate. We have everything needed to build on Linux, but unfortunately I don't have the capacity at this time.

Regarding the graphics issues, this would require deeper inspection of the OpenGL driver as I doubt a rebuild for Linux will resolve it.

Looking at Proton, it appears they replaced the d3d9 compatibility layer from dxkv to wined3d. Have you tried rolling back to dxkv to see if it yields any improvement?

I should also note that the FPS issue may have less to do with the renderer and probably more to do with the change of time source in this patch. Unlike Windows, Linux does not suffer from the same time resolution issue. Unless you need something else in this patch, such as the dodge fix, the official Linux build should only suffer from the OpenGL texture issue.

Gibitwit commented 1 month ago

I have not tried wined3d. Currently I am using vkd3d (Direct3D 12 on Vulkan), by means of using dg voodoo 2. This, along with these patches yields a higher frame rate than using the Linux version. But there is the fullscreen bug and once in a while a stutter, maybe shader compilation as I have not gone through all the levels yet.

Also I want to use the windows version because I want the full audio experience. I don't know of any way to use Directsound with the Linux version of the game.

I don't know the time resolution issue. It would be great if these patches could further improve things for Linux players and modders some day. For now I consider the situation as I have it acceptable.

DXVK now works for D3D8, I will try that out when Bottles and Steam update.