PiBoSo Official Forum

GP Bikes => Bug Reports => Topic started by: HornetMaX on October 09, 2016, 08:31:42 PM

Title: Rendering quirk with output plugin quads ?
Post by: HornetMaX on October 09, 2016, 08:31:42 PM
@PiBoSo:

Since beta9, when using my output plugin (http://forum.piboso.com/index.php?topic=79.0 (http://forum.piboso.com/index.php?topic=79.0)) on an onlilne server with multiple players I have a weird problem.
Randomly, all the output plugin quads that are on screen blink: they disappear for a tiny fraction of a second and then reappear. All of them at the same time.

It seems to happen more the more rider are on track/on the server. Tonight on a server running Aragon with Moto2 with 8-9 riders it was very very visible.
If you have less riders (2-3) it seems to happen less frequently (i.e. you may have to wait 1-2min between occurrences). Offline it doesn't seem to happen at all.

Even if I can't be 100% sure, I'm thinking the problem is not in my code as I preallocate all my quads and hide some of them when needed (setting alpha to zero), but what I see on screen involves all the quads (and strings) at the same time.

Any idea ?

Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on October 12, 2016, 07:04:24 PM
Up ?

I've cuaght it on video tonight (Assen, 4-5 riders online, cbr 600 cup): look form 1m40s, it happens at 1m44s exactly.

https://www.youtube.com/v/FZFgTUYF7Ow
Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on October 14, 2016, 03:38:22 PM
No idea ?
Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on November 06, 2016, 08:14:44 PM
@PiBoSo: OK, I did another test: I took the output plugin example code provided by PiBoSo, added some minimal code to put a red semi-transparent quad on screen (nothing more) and when using this plugin in GPB the quad flickers in the same conditions as my own plugin (i.e. online session with multiple bikes on track, see the 1st post and the video in this thread). It's maybe a bit less evident (just tried once, 6 riders on Dijon with STK bikes), but it's definitely there. I think this tends to exclude the problem is in my code.

In the archive linked here below you'll find: the plugin itself (DummyPlugin.dlo), the source code (single .cpp file) and the Visual Studio 2015 files (doubt you need them, anyway).

https://mega.nz/#!VBMH1TTY!ie5xP2oKx6oXWMhrRJQAQUo-qdUPyOEq1LL6Lhq90YU (https://mega.nz/#!VBMH1TTY!ie5xP2oKx6oXWMhrRJQAQUo-qdUPyOEq1LL6Lhq90YU)
Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on November 25, 2016, 07:23:05 AM
Very interesting info posted by LOOPATELI:

Quote from: LOOPATELI on November 25, 2016, 01:01:24 AM
max when we are online and my bike falls out of the track to the infinite, the max hud dissapears to all the riders. then if go back to pit the hud appears again to the rest if the riders

It also seems the flickering of the plugin's quads happens when other bikes crash and/or go to pits.
Title: Re: Rendering quirk with output plugin quads ?
Post by: janaucarre on November 25, 2016, 10:43:13 AM
It also happens when im alone
Title: Re: Rendering quirk with output plugin quads ?
Post by: Warlock on November 25, 2016, 05:09:17 PM
Yes, does happen being alone
Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on November 25, 2016, 05:52:17 PM
Just online or offline too ? (I think I've never seen it offline)
Title: Re: Rendering quirk with output plugin quads ?
Post by: PeterV on November 25, 2016, 06:29:00 PM
They mean a online session, but beeing the only one playing.
Title: Re: Rendering quirk with output plugin quads ?
Post by: PeterV on November 27, 2016, 07:06:57 PM
Im in a online session with warlock, only 2 of us now, and i noticed flickering when Warlock past a certain point.
It looks like the whiteline but could also be the transition between racetrack and surrounding area(s).
We can certainly reproduce it, i made Warlock do it 4 times  ;D

https://www.youtube.com/v/M-sV0CenUKU
Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on November 27, 2016, 07:08:30 PM
Thanks PeterV (and Warlock) !

I think at this point we only need PiBoSo to have a look.
Title: Re: Rendering quirk with output plugin quads ?
Post by: PiBoSo on November 27, 2016, 07:28:12 PM
Quote from: HornetMaX on November 27, 2016, 07:08:30 PM
Thanks PeterV (and Warlock) !

I think at this point we only need PiBoSo to have a look.

Already done.
The fix will be integrated in the upcoming patch.
Title: Re: Rendering quirk with output plugin quads ?
Post by: Warlock on November 27, 2016, 07:32:10 PM
Great !!    thank you !
Title: Re: Rendering quirk with output plugin quads ?
Post by: HornetMaX on November 27, 2016, 09:38:57 PM
Great, thanks !!
Title: Re: Rendering quirk with output plugin quads ?
Post by: Hawk on November 27, 2016, 10:55:22 PM
Nice one Pib!  ;) 8)

Hawk.