UI texture resolution should be dynamically chosen |
|||
Issue descriptionTextures generated for UI elements use hard coded pixel dimensions based on approximately how large the element should be in the FOV. This is error-prone, wasteful and dangerous. We should, in some way, use the UI to determine the ideal resolution for elements based on their transformation, and feed this back to the texture generation portion of elements.
,
Apr 17 2018
We've mostly addressed this now. Because we used the ScaledDepthAdjuster, element sizes are generally in DMM. We can convert size to texture size, as the text element does, by using a fixed ratio.
,
Apr 17 2018
However, we'd want to ensure that if the size animates for some reason, that we don't redraw a texture every frame during the animation.
,
Apr 17 2018
I think this bug also refers to dynamically computing an optimal resolution based on the display's resolution and element size in projected space as we do it for the content texture.
,
Apr 17 2018
/re the animation, for the content quad we choose the target value of the animation to calculate the resolution.
,
Jan 18
(5 days ago)
,
Jan 18
(4 days ago)
|
|||
►
Sign in to add a comment |
|||
Comment 1 by vollick@chromium.org
, Oct 13 2017