Canvas contents are not persistent

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Marisa the Magician
 
 
Posts: 3879
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Canvas contents are not persistent

Post by Marisa the Magician »

I thought this was supposed to be the case, yet somehow I'm finding that unless I draw to a canvas every frame, it immediately gets cleared on the next.

Again, a map is provided. This should draw an ouch face with a blue background every 50 frames. Ideally what should happen is that there's no flickering and the drawn contents remain static, but instead it flickers once every 50 frames.
User avatar
AFADoomer
Posts: 1304
Joined: Tue Jul 15, 2003 4:18 pm

Re: Canvas contents are not persistent

Post by AFADoomer »

Can confirm this behavior. I had to put my canvas update calls inside of a RenderOverlay/Underlay call inside an event handler to get clean drawing... I assumed this was intended behavior.
User avatar
phantombeta
Posts: 2030
Joined: Thu May 02, 2013 1:27 am
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Canvas contents are not persistent

Post by phantombeta »

Seems to be a Vulkan bug. If I run the test file in OpenGL, the image stays persistent.
dpJudas
 
 
Posts: 2923
Joined: Sat May 28, 2016 1:01 pm

Re: Canvas contents are not persistent

Post by dpJudas »

There must be two bugs at play here. First is the vulkan backend opens the drawing with a renderpass that clears the buffer. The second is that it must be actively updating the texture those 49 frames where nobody is drawing to it. It isn't supposed to even setup drawing for the texture unless one of the canvas draw functions have been called.
dpJudas
 
 
Posts: 2923
Joined: Sat May 28, 2016 1:01 pm

Re: Canvas contents are not persistent

Post by dpJudas »

Fixed in PR 1777

Return to “Closed Bugs [GZDoom]”