vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
36 stars 14 forks source link

`TextureReader (Async)` should keep texture alive for one frame #91

Open azeno opened 2 years ago

azeno commented 2 years ago

Motivation

If one has multiple TextureReader nodes it's quite common that when transitioning from one set of textures to another one the reference count of one of the used textures goes to zero and we see a subsequent blink in the output. Whether or not that happens depends on the order in which the new keys get assigned to the readers.

Solution

Using a frame delay we can easily prevent the ref count going to zero in between a frame: image