Page 1 of 1
Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Mon Oct 04, 2021 7:34 pm
by Guest
https://streamable.com/81wd8i
This seems to be a problem exclusively for OpenGL. The rest of the video backends do not have this problem.
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 12:00 am
by Graf Zahl
What's your hardware specs?
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:00 am
by Guest
CPU+GPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 2.10GHz
RAM: 12GB
VRAM: 7GB (2GB Dedicated, 5GB Shared)
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:12 am
by Graf Zahl
Hm...
Sounds like another AMD/OpenGL problem.
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:19 am
by Rachael
Is it possible to set up some way to upload SPIR-V shaders in OpenGL? I think for any GPUs that are capable of this, this will fix the shader problems that AMD chipsets clearly can simply not avoid. AMD's GLSL shader compilers seem to suffer a series of regressions that never get fixed over time.
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:20 am
by emile_b
Looks similar to the errors I see when the pipelining stuff is not working correctly, might be interesting to know if 'gl_pipeline_depth' is set to something other than 0.
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:28 am
by dpJudas
You can send SPIR-V shaders to OpenGL, yes. Unfortunately it requires a very new version to do so. At that point you might as well just use the vulkan backend.

Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:28 am
by Graf Zahl
Rachael wrote:Is it possible to set up some way to upload SPIR-V shaders in OpenGL? I think for any GPUs that are capable of this, this will fix the shader problems that AMD chipsets clearly can simply not avoid. AMD's GLSL shader compilers seem to suffer a series of regressions that never get fixed over time.
Yes, but it'd require a substantial rewrite of the OpenGL backend, and will be limited to hardware that can do Vulkan anyway.
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 3:30 am
by Rachael
Considering the deprecated state of OpenGL in general, that simply would not be worth the time then.
I still think Vulkan should be set to the default backend, though.
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 4:00 am
by Guest
I should mention that this does not happen on the Open GL renderer, (and the fact that it worked fine on 4.6.1, sans the nonfunctioning shadowmaps)
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 4:28 am
by drfrag
Ransom Hammerstun wrote:I should mention that this does not happen on the Open GL renderer
But you said it happens on OpenGL before, you mean Vulkan?
Re: Dynamic Lights rapidly flashing on OpenGL (GZDoom 4.7.0)
Posted: Tue Oct 05, 2021 5:14 am
by Guest
drfrag wrote:
> [quote="Ransom Hammerstun"]I should mention that this does not happen on the Open
> GL renderer[/quote]
> But you said it happens on OpenGL before, you mean Vulkan?
I meant the OpenGL ES renderer, my bad.