Skip to content

Conversation

@wouterlucas
Copy link
Contributor

No description provided.

@wouterlucas wouterlucas requested a review from DouweCnossen June 25, 2025 18:59
@wouterlucas wouterlucas merged commit 86c27f1 into v2 Jun 25, 2025
2 checks passed
wouterlucas added a commit that referenced this pull request Jun 26, 2025
If we made really quick changes to an image node (e.g. alpha 0 to 1 back
0) you could end up with race conditions that caused a duplicate cleanup
of the texture. Resulting in the issues seen (and guarded) with #597

This change addresses the root cause by avoiding duplicate `load` of
textures and cleaning up textures that are in an transitional state
(`fetching` / `fetched` / `loading` etc).

This avoids a race condition where the memory manager tries to cleanup a
texture that is still `loading` or similar, which is especially
prevalent on CPU starved devices with heavy transitions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants