Understand

Understand

View Stats:
Xenos6666 Jul 20, 2021 @ 3:13pm
Flickering when streaming using discord
Most elements in the game start flickering when I stream the game to friends in discord, the game works fine when I don't stream it.
< >
Showing 1-12 of 12 comments
artless  [developer] Jul 20, 2021 @ 7:28pm 
Sorry, it's a known issue and I don't the technique to fix that.
I guess it's the game engine's fault.

Streaming at fullscreen and lower discord fps have a chance to fix the problem. It depends on unknown reason.
Xenos6666 Jul 21, 2021 @ 7:50am 
Originally posted by artless:
Sorry, it's a known issue and I don't the technique to fix that.
I guess it's the game engine's fault.

Streaming at fullscreen and lower discord fps have a chance to fix the problem. It depends on unknown reason.

I don't know which game engine is used, but it looks like V-sync should fix this problem as it looks like a refresh issue to me, maybe you should try to implement it?
artless  [developer] Jul 21, 2021 @ 8:24pm 
Originally posted by Xenos6666:
Originally posted by artless:
Sorry, it's a known issue and I don't the technique to fix that.
I guess it's the game engine's fault.

Streaming at fullscreen and lower discord fps have a chance to fix the problem. It depends on unknown reason.

I don't know which game engine is used, but it looks like V-sync should fix this problem as it looks like a refresh issue to me, maybe you should try to implement it?

That sounds likely.
I'll give it a try.

btw
What does the game look like when it flickers?
Some shapes missing or turn black or missing part of it?
Only your friends see it flickering, or including yourself?
[FROG] Mac Jul 21, 2021 @ 8:34pm 
Originally posted by artless:
Originally posted by Xenos6666:

I don't know which game engine is used, but it looks like V-sync should fix this problem as it looks like a refresh issue to me, maybe you should try to implement it?

That sounds likely.
I'll give it a try.

btw
What does the game look like when it flickers?
Some shapes missing or turn black or missing part of it?
Only your friends see it flickering, or including yourself?

for me, its everything within the gameplay box flashing to black and people watching see it as normal.
artless  [developer] Jul 21, 2021 @ 8:46pm 
I tested the vsync option.
No matter I turn it on or off, it still flickers as usual.
Last edited by artless; Jul 21, 2021 @ 8:46pm
Xenos6666 Jul 22, 2021 @ 5:10pm 
Originally posted by FROG MasterBuilderMAC:
Originally posted by artless:

That sounds likely.
I'll give it a try.

btw
What does the game look like when it flickers?
Some shapes missing or turn black or missing part of it?
Only your friends see it flickering, or including yourself?

for me, its everything within the gameplay box flashing to black and people watching see it as normal.
Same, only I see the problem when I'm streaming, shapes turn black or only render partially
Xenos6666 Jul 22, 2021 @ 5:11pm 
Originally posted by artless:
I tested the vsync option.
No matter I turn it on or off, it still flickers as usual.
Oof, that sounds like a very annoying bug to debug then.
Zed Aug 6, 2021 @ 7:15pm 
I just learned, that I shouldn't stream the game for to long.
I streamed it desite the flickering for a friend. I closed the game after some time (about 1-2 hours) and the flickering persisted on the monitor.
The flickering persisted even after a restart.

I am hoping that the issue resolves itself after a few hours...
But just a heads up to be careful, when streaming with flickering.

Edit: The flickering is just in the area that the game was shown at. Not the whole monitor.
Last edited by Zed; Aug 6, 2021 @ 7:16pm
Zed Aug 6, 2021 @ 7:36pm 
It's already nearly gone. So it seems I didn't wreck my monitor.
But I'll be more careful in the future.

Edit: Flickering is fully gone now.
Last edited by Zed; Aug 7, 2021 @ 7:03am
Wandy Aug 25, 2021 @ 2:28pm 
For me it flickers when you stream the game window but it doesn't when streaming the screen directly (no sound instead but that's normal since it's Discord's fault). Dunno if it can help in any way.
We had the exact same problem in our open-source shooter.[github.com]
Games often use a certain optimization technique: you check if the GL texture is already bound before calling glBindTexture, and if it's the same texture, the call is skipped to save on OpenGL calls.

That optimization turned out to be the culprit, and disabling it fixed the problem completely.
https://github.com/TeamHypersomnia/Hypersomnia/commit/99de1cc851d33915eacb3b6166397008d296fad2

My hypothesis is that Discord streaming and Steam overlay happen to make their own calls to glBindTexture in-between frames, and the CPU-side identifier simply becomes out of sync.

I also took care to call glBindTexture as well as re-bind the current OpenGL context with wglMakeCurrent right before every call to glTexImage2D.
Last edited by Pythagoras of Samos; Dec 18, 2023 @ 9:18am
PURPLE Jan 28, 2024 @ 12:21pm 
For anyone having this issue stream the screen and not the game, the new discord update allows audio on screen share now and theres no flickering
< >
Showing 1-12 of 12 comments
Per page: 1530 50