Document Image.generate_mipmaps() always running on the main thread

(cherry picked from commit 30a88f464b)
This commit is contained in:
Hugo Locurcio 2021-08-22 02:21:06 +02:00 committed by Rémi Verschelde
parent 4d94aba0ed
commit 9aee1a3992
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -163,6 +163,7 @@
<argument index="0" name="renormalize" type="bool" default="false" />
<description>
Generates mipmaps for the image. Mipmaps are precalculated lower-resolution copies of the image that are automatically used if the image needs to be scaled down when rendered. They help improve image quality and performance when rendering. This method returns an error if the image is compressed, in a custom format, or if the image's width/height is [code]0[/code].
[b]Note:[/b] Mipmap generation is done on the CPU, is single-threaded and is [i]always[/i] done on the main thread. This means generating mipmaps will result in noticeable stuttering during gameplay, even if [method generate_mipmaps] is called from a [Thread].
</description>
</method>
<method name="get_data" qualifiers="const">