From 4b648e2d6e09d260b95adfd829012c40b5855b4d Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Fri, 29 Apr 2022 09:29:06 +0200 Subject: [PATCH] Docs: Mentioned the need for ImageBitmap.close(). (#23959) --- docs/examples/en/loaders/GLTFLoader.html | 5 +++++ docs/examples/zh/loaders/GLTFLoader.html | 5 +++++ docs/manual/ar/introduction/How-to-dispose-of-objects.html | 5 +++++ docs/manual/en/introduction/How-to-dispose-of-objects.html | 5 +++++ docs/manual/ja/introduction/How-to-dispose-of-objects.html | 7 ++++++- docs/manual/ko/introduction/How-to-dispose-of-objects.html | 7 ++++++- docs/manual/zh/introduction/How-to-dispose-of-objects.html | 5 +++++ 7 files changed, 37 insertions(+), 2 deletions(-) diff --git a/docs/examples/en/loaders/GLTFLoader.html b/docs/examples/en/loaders/GLTFLoader.html index 57b8cbcc11cfce..2074f7d531ef36 100644 --- a/docs/examples/en/loaders/GLTFLoader.html +++ b/docs/examples/en/loaders/GLTFLoader.html @@ -20,6 +20,11 @@

[name]

textures, skins, skeletons, morph targets, animations, lights, and/or cameras.

+

+ [name] uses [page:ImageBitmapLoader] whenever possible. Be advised that image bitmaps are not automatically GC-collected when they are no longer referenced, + and they require special handling during the disposal process. More information in the [link:https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects How to dispose of objects] guide. +

+

Extensions

diff --git a/docs/examples/zh/loaders/GLTFLoader.html b/docs/examples/zh/loaders/GLTFLoader.html index 725d3f16aaeb3c..6e4e7d9b3e04e8 100644 --- a/docs/examples/zh/loaders/GLTFLoader.html +++ b/docs/examples/zh/loaders/GLTFLoader.html @@ -19,6 +19,11 @@

GLTF加载器([name])

包括网格、材质、贴图、蒙皮、骨架、变形目标、动画、灯光以及摄像机。

+

+ [name] uses [page:ImageBitmapLoader] whenever possible. Be advised that image bitmaps are not automatically GC-collected when they are no longer referenced, + and they require special handling during the disposal process. More information in the [link:https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects How to dispose of objects] guide. +

+

扩展

diff --git a/docs/manual/ar/introduction/How-to-dispose-of-objects.html b/docs/manual/ar/introduction/How-to-dispose-of-objects.html index 644130dccff00f..478ab6ec33fa3c 100644 --- a/docs/manual/ar/introduction/How-to-dispose-of-objects.html +++ b/docs/manual/ar/introduction/How-to-dispose-of-objects.html @@ -37,6 +37,11 @@

الأنسجة (Textures)

على غرار المخازن المؤقتة ، لا يمكن حذف هذا الكائن إلا عن طريق استدعاء [page:Texture.dispose]().

+

+ If you use an *ImageBitmap* as the texture's data source, you have to call [link:https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close ImageBitmap.close]() at the application level to dispose of all CPU-side resources. + An automated call of *ImageBitmap.close()* in [page:Texture.dispose]() is not possible, since the image bitmap becomes unusable, and the engine has no way of knowing if the image bitmap is used elsewhere. +

+

أهداف العرض

diff --git a/docs/manual/en/introduction/How-to-dispose-of-objects.html b/docs/manual/en/introduction/How-to-dispose-of-objects.html index 3a8ff2b4886146..3b5a00c385808f 100644 --- a/docs/manual/en/introduction/How-to-dispose-of-objects.html +++ b/docs/manual/en/introduction/How-to-dispose-of-objects.html @@ -44,6 +44,11 @@

Textures

Similar to buffers, this object can only be deleted by calling [page:Texture.dispose]().

+

+ If you use an *ImageBitmap* as the texture's data source, you have to call [link:https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close ImageBitmap.close]() at the application level to dispose of all CPU-side resources. + An automated call of *ImageBitmap.close()* in [page:Texture.dispose]() is not possible, since the image bitmap becomes unusable, and the engine has no way of knowing if the image bitmap is used elsewhere. +

+

Render Targets

diff --git a/docs/manual/ja/introduction/How-to-dispose-of-objects.html b/docs/manual/ja/introduction/How-to-dispose-of-objects.html index 545f92ed443ad9..e556d1bee27e40 100644 --- a/docs/manual/ja/introduction/How-to-dispose-of-objects.html +++ b/docs/manual/ja/introduction/How-to-dispose-of-objects.html @@ -50,6 +50,11 @@

Textures

バッファと同様に、このオブジェクトは[page:Texture.dispose]()を呼ぶことでしか削除できません。

+

+ If you use an *ImageBitmap* as the texture's data source, you have to call [link:https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close ImageBitmap.close]() at the application level to dispose of all CPU-side resources. + An automated call of *ImageBitmap.close()* in [page:Texture.dispose]() is not possible, since the image bitmap becomes unusable, and the engine has no way of knowing if the image bitmap is used elsewhere. +

+

Render Targets

@@ -127,4 +132,4 @@

Examples that demonstrate the usage of dispose()

- \ No newline at end of file + diff --git a/docs/manual/ko/introduction/How-to-dispose-of-objects.html b/docs/manual/ko/introduction/How-to-dispose-of-objects.html index 5febb311eae2fe..ab18e557b98f26 100644 --- a/docs/manual/ko/introduction/How-to-dispose-of-objects.html +++ b/docs/manual/ko/introduction/How-to-dispose-of-objects.html @@ -42,6 +42,11 @@

텍스쳐

buffer와 비슷하게, 이 오브젝트는 [page:Texture.dispose]() 호출로만 삭제가 가능합니다.

+

+ If you use an *ImageBitmap* as the texture's data source, you have to call [link:https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close ImageBitmap.close]() at the application level to dispose of all CPU-side resources. + An automated call of *ImageBitmap.close()* in [page:Texture.dispose]() is not possible, since the image bitmap becomes unusable, and the engine has no way of knowing if the image bitmap is used elsewhere. +

+

렌더링 대상

@@ -112,4 +117,4 @@

dispose() 사용법 예제

- \ No newline at end of file + diff --git a/docs/manual/zh/introduction/How-to-dispose-of-objects.html b/docs/manual/zh/introduction/How-to-dispose-of-objects.html index 84345e1f136adf..766f9e506572af 100644 --- a/docs/manual/zh/introduction/How-to-dispose-of-objects.html +++ b/docs/manual/zh/introduction/How-to-dispose-of-objects.html @@ -44,6 +44,11 @@

纹理

和buffer相似,该对象只能通过调用[page:Texture.dispose]()来删除。

+

+ If you use an *ImageBitmap* as the texture's data source, you have to call [link:https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close ImageBitmap.close]() at the application level to dispose of all CPU-side resources. + An automated call of *ImageBitmap.close()* in [page:Texture.dispose]() is not possible, since the image bitmap becomes unusable, and the engine has no way of knowing if the image bitmap is used elsewhere. +

+

渲染目标