FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
553 stars 107 forks source link

VBO renderer with possibly outdated nvidia drivers on windows #307

Open mittorn opened 6 years ago

mittorn commented 6 years ago

Some users reports bad behaviour: broken lightmaps, disappearing surfaces when using flashlights. Please attach log with -gldebug if you get something wrong in latest test versions

a1batross commented 6 years ago

With -gldebug it seems to be not reproducible.

Although, I reproduced it even on latest NVidia drivers.

a1batross commented 6 years ago

Workaround is very slow, as wants memory bandwidth.

So I decided to disable VBO renderer for NVIDIA on Windows.

revelator commented 6 years ago

Actually i get this bug on an AMD R9 390 so it seems not specific to nvidia.

mittorn commented 6 years ago

Can you run with -gldebug option?

mittorn commented 6 years ago

check r_vbo_dlightmode Maybe it fix rendering

mittorn commented 6 years ago

r_vbo_dlightmode fixed issue on nvidia, it will be enabled for desktop platforms by default

mittorn commented 6 years ago

@revelator, check last test build on AMD with r_vbo 1 and r_vbo_dlightmode 1

revelator commented 6 years ago

Sorry been away for some time, nothing immediatly shows up with gldebug but turning vbo off fixes the bug. Last test build seems to work ok also but i havent yet had an extensive runthrough.

mittorn commented 6 years ago

Does last version work with both r_vbo and r_vbo_dlightmode enabled? second should fix issue that caused r_vbo to glitch and improve performance

revelator commented 6 years ago

seems to do so far, havent had time for a longer run yet though. question btw. does half-life even use R_DrawWaterSurfaces ? or is this part for quake only. Asking because i was adding glsl based code for water warp and other effects, but the effect newer shows up in game.

revelator commented 5 years ago

It is back. Latest pull from here breaks flashlights in half-life and ir googles in opposing force with vbo's on. r_vbo_dlightmode 1 or 0 does no difference.

mittorn commented 5 years ago

Try enable -gldebug command-line option

revelator commented 5 years ago

Hmm not getting any log with that option, do i need -condebug also ?.

mittorn commented 5 years ago

-console -dev 5

revelator commented 5 years ago

hmm not getting any problems with debug enabled ... Hard to hunt this one down it seems allthough it partly seems to be caused by the latest AMD driver for my card, previous driver works fine so urgh.