ultralight-ux / Ultralight

Lightweight, high-performance HTML renderer for game and app developers.
https://ultralig.ht
4.69k stars 197 forks source link

Transparent Views don't update properly if modified/changed/repainted #319

Closed gtnardy closed 2 years ago

gtnardy commented 3 years ago

Hello there, (I'm editing this issue as it seems I have found exactly the cause of this problem, and I hope with those information it can be fixed!)

I've got some problems using transparent Views with translucent background of HTML elements. Some 'ghost effects' remain after the screen is changed.

Example 1: https://streamable.com/s5iyyx Example 2: https://streamable.com/3rv5av

image

First I discovered that setting Config.force_repaint = true; "solves" the problem.

Second I discovered that it seems to be caused by transparent Views (CreateView with transparent = false also "solved" the problem)

gtnardy commented 3 years ago

I could notice the problem appeared after updating from 1.2.0-beta.2 to 1.2.0. Specifically after updating the file Ultralight.dll.

adamjs commented 3 years ago

This should be fixed in https://github.com/ultralight-ux/Ultralight/commit/248b91bc652a1fe4a1368845df1d988db03bb31e, can you test latest SDK and see?

gtnardy commented 3 years ago

Hey there! Nice!! Where can I download/test it?