View Issue Details

IDProjectCategoryView StatusLast Update
0002800NoesisGUIUnitypublic2024-02-19 13:39
Reporterstonstad Assigned Tojsantos  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product Version3.2.2 
Target Version3.2.3Fixed in Version3.2.3 
Summary0002800: TextureSource Behavior on XBOX
Description

Hello!

I am seeing UI flickering (on/off) on Xbox. It may not be caused by Noesis -- I am not sure how I can tell? Here is a video showing what it looks like:

Video: https://stellarconquest.blob.core.windows.net/tmp/noesis/XBOXSX_Video_2.mp4

The UI works great on PC. Attached is the code for how I am creating RenderTexture and assigning it to a rectangle using TextureSource.

Thank you!

*edited to move PIX to private comment.

Steps To Reproduce

// create render texture (use Linear for Noesis texture creation)
_RenderTexture = new RenderTexture((int)Width, (int)Height, 1, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Linear);
Camera.targetTexture = _RenderTexture;
_RenderTexture.Create();

// create brush to store render texture and assign it to the rectangle
_RenderRectangle.Fill = new ImageBrush()
{
ImageSource = new TextureSource(_RenderTexture),
Stretch = Stretch.None,
Opacity = 1.0f
};

PlatformAny

Relationships

related to 0002776 resolvedjsantos Imagebrush rendertexture crash with D3X12 
related to 0003093 resolvedsfernandez Empty offscreen rectangles generated sometimes 

Activities

jsantos

jsantos

2023-10-31 18:27

manager   ~0008918

I am getting a catastrophic failure opening the pix.

Are you able to open it?

stonstad

stonstad

2023-10-31 22:27

reporter   ~0008920

Last edited: 2023-10-31 22:27

Yes, I re-downloaded and it opens successfully for me. My PIX says June 2023 Update 2 (2261.4304).

stonstad

stonstad

2023-11-02 15:03

reporter   ~0008923

Would a new PIX help? Or I can try zipping the PIX file -- but I can't imagine bit corruption is an issue here during download.

jsantos

jsantos

2023-11-06 18:10

manager   ~0008931

I am still getting catastrophic failures opening both captures. :( I can try upgrading to your version, but right now I am locked to this version (March 2023 Update 2) to avoid more issues with Unity and Unreal.

Could you try with March 2023 Update 2 by any chance?

If not, I am going to need a bit more of time for this.

Thank you!

stonstad

stonstad

2023-11-06 19:51

reporter   ~0008932

Hi Jesus. Unity 2022.3.10 LTS requires the version we are on. My understanding is that GDKs can be installed side by side. Unity only uses the version “required” by the Editor version.

stonstad

stonstad

2023-11-16 22:30

reporter   ~0008947

Any updates for this bug? Thank you.

jsantos

jsantos

2023-11-17 17:03

manager   ~0008950

I have been analyzing both captures, but it seems all frames are correct? Could you please check this, and indicate what's the frame that's showcasing the flickering in pix1 or pix3?

jsantos

jsantos

2023-11-17 18:27

manager   ~0008951

By the way, both captures have blur

stonstad

stonstad

2023-11-17 21:11

reporter   ~0008954

I have been analyzing both captures, but it seems all frames are correct? Could you please check this, and indicate what's the frame that's showcasing the flickering in pix1 or pix3?
I noticed that the artifacts do not appear in the captured screenshot. I wasn't sure if this was a timing issue on my part and when I paused it. I will recapture or see if I can figure out what frame it is -- not sure how to do that but I will try.

By the way, both captures have blur
Do you mean motion blur, or blur in the Noesis output? Not sure what this means.

jsantos

jsantos

2023-11-17 21:34

manager   ~0008955

The above example is simpler (no blur).

I understood by this, that one of the captures didn't have blur (effect) but both have.

The captures reveal an performance issue (common to PC and XBox) that we are going to fix, but yes, having another capture showing the flickering issue is definitely going to help us a lot.

stonstad

stonstad

2023-11-17 22:08

reporter   ~0008956

This PIX should have BackgoundEffectBlur disabled: https://stellarconquest.blob.core.windows.net/tmp/noesis/pix3.xpix In the video you can see that the blurring is off, at least visually.

jsantos

jsantos

2023-11-17 22:28

manager   ~0008957

Is this PIX reproducing the flickering issue? That's what I need :)

I will check this later

stonstad

stonstad

2023-11-28 20:55

reporter   ~0008988

I am unable to capture the flickering within a PIX dump. I tried 20 exports and each of them fail to capture the flicker -- or at least I don't see it in the PIX screenshot. I have some observations related to the behavior:

  • If BackgroundEffectBlur is DISABLED, the only time the flickering behavior manifests is if an active secondary RenderTexture is used with Noesis via a TextureSource.

  • On the PC platform, a newly created RenderTexture is initialized to clear or it is initialized to a valid state before it is displayed. But on XBOX it contains an uninitialized state, which can look like a visual glitch before the RenderTexture is updated by a camera. A Noesis TextureSource assigned to a Rectangle will briefly show this uninitialized state. The solution is to initialize RenderTexture via a color BLT on XBOX before assigning it to a Noesis TextureSource. This change has eliminated most 'pops' of bad visual state, but it does not resolve the flickering.

I'm trying to think of what I can do. What about sending an image of the entire game? It is 22.3 GB, and it can be deployed directly to the GDK. Could this work?

-

stonstad

stonstad

2023-11-28 21:03

reporter   ~0008989

A while back, there was an issue with adorner elements resizing repeatedly (https://www.noesisengine.com/bugs/view.php?id=2615 ) -- maybe that is what I am seeing here in this video?
https://stellarconquest.blob.core.windows.net/tmp/noesis/XBOXSX_Video_3.mp4

I'm just trying to figure out what could cause this on XBOX but not PC.

stonstad

stonstad

2023-11-28 21:09

reporter   ~0008990

Last edited: 2023-11-28 21:10

  • removed * nevermind.
jsantos

jsantos

2023-11-29 13:00

manager   ~0008991

The fact that you can't capture this with PIX, makes me think that this is a "timing" issue in the GPU. This could be related to barriers, and the render texture not properly transitioned from render target to texture. I think our code is correct on this side but I need to carefully verify this.

Do you think you can reproduce this issue in a minimal sample? This would help us a lot to narrow the cases that can lead to this issue,

jsantos

jsantos

2024-01-26 19:57

manager   ~0009131

Last edited: 2024-02-19 13:39

Although I couldn't reproduce, this is quite similar to 0002776 and I have already fixed for 3.2.3, please reopen if needed

Issue History

Date Modified Username Field Change
2023-10-30 22:43 stonstad New Issue
2023-10-30 22:43 stonstad Description Updated
2023-10-31 18:27 jsantos Note Added: 0008918
2023-10-31 18:27 jsantos Assigned To => jsantos
2023-10-31 18:27 jsantos Status new => feedback
2023-10-31 18:27 jsantos Target Version => 3.2.3
2023-10-31 22:27 stonstad Note Added: 0008920
2023-10-31 22:27 stonstad Status feedback => assigned
2023-10-31 22:27 stonstad Note Edited: 0008920
2023-11-02 15:03 stonstad Note Added: 0008923
2023-11-06 18:10 jsantos Note Added: 0008931
2023-11-06 18:10 jsantos Status assigned => feedback
2023-11-06 19:51 stonstad Note Added: 0008932
2023-11-06 19:51 stonstad Status feedback => assigned
2023-11-16 22:30 stonstad Note Added: 0008947
2023-11-17 17:03 jsantos Note Added: 0008950
2023-11-17 18:19 jsantos Status assigned => feedback
2023-11-17 18:27 jsantos Note Added: 0008951
2023-11-17 21:11 stonstad Note Added: 0008954
2023-11-17 21:11 stonstad Status feedback => assigned
2023-11-17 21:34 jsantos Note Added: 0008955
2023-11-17 21:34 jsantos Status assigned => feedback
2023-11-17 22:08 stonstad Note Added: 0008956
2023-11-17 22:08 stonstad Status feedback => assigned
2023-11-17 22:28 jsantos Note Added: 0008957
2023-11-17 22:29 jsantos Status assigned => feedback
2023-11-28 20:55 stonstad Note Added: 0008988
2023-11-28 20:55 stonstad Status feedback => assigned
2023-11-28 21:03 stonstad Note Added: 0008989
2023-11-28 21:09 stonstad Note Added: 0008990
2023-11-28 21:10 stonstad Note Edited: 0008990
2023-11-29 13:00 jsantos Note Added: 0008991
2023-11-29 13:00 jsantos Status assigned => feedback
2024-01-22 11:42 jsantos Target Version 3.2.3 => 3.2.4
2024-01-26 19:55 jsantos Target Version 3.2.4 => 3.2.3
2024-01-26 19:56 jsantos Relationship added related to 0002776
2024-01-26 19:57 jsantos Status feedback => resolved
2024-01-26 19:57 jsantos Resolution open => fixed
2024-01-26 19:57 jsantos Note Added: 0009131
2024-01-26 19:57 jsantos Fixed in Version => 3.2.3
2024-02-19 13:39 jsantos Note Edited: 0009131
2024-02-19 13:39 jsantos Relationship added related to 0003093
2025-10-10 13:29 jsantos Category Unity3D => Unity