Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
194 stars 9 forks source link

Uix does flicker with text-content remove/replace #646

Open Ardescar opened 4 years ago

Ardescar commented 4 years ago

i found and traced together with art0007i

Setup to reproduce is:

When the text is only changed to another letter-containing-text then it works without flicker. It only does flicker when the new Text is Empty or a Space.

Video - https://www.strzl.de/video/flickermore.mp4

frame framesetup

Ardescar commented 4 years ago

Another screenshot from art0007i with a different setup with the same result.

unknown

Frooxius commented 4 years ago

This is side effect of the UIX canvas rebuilding the material lists when the composition of it changes. When there's no active text, it regenerates the material list to exclude it from the rendering, which causes the brief flicker.

I plan on extending the system to better synchronize those changes with renderer and prevent the flickers, but that's a bit long term solution now.