Skip to content

The memory usage of a program that repeatedly generates images gradually increases over time. Is this normal? #874

Answered by C0j23T
C0j23T asked this question in Q&A
Discussion options

You must be logged in to vote

Return an image backed by the encoded data, but attempt to defer decoding until the image is actually used/drawn. This deferral allows the system to cache the result, either on the CPU or on the GPU, depending on where the image is drawn. If memory is low, the cache may be purged, causing the next draw of the image to have to re-decode.

from_encoded_with_alpha_type

Images are cached. I didn't see this. 😂

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@C0j23T
Comment options

@tronical
Comment options

@C0j23T
Comment options

@tronical
Comment options

@C0j23T
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by C0j23T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants