未验证 提交 54a207c1 编写于 作者: J Jake Livak 提交者: GitHub

Update VideoTexture doc with note about using RGBA format to avoid Firefox...

Update VideoTexture doc with note about using RGBA format to avoid Firefox performance issue. (#21746)

* VideoTexture should use RGBA format to avoid firefox issue.

There's an issue with Firefox desktop that causes RGBFormat on a video texture to destroy performance.  When testing with a single 4K 360 video, frame times on Firefox with RGBFormat were ~200x RGBAFormat.  (62ms vs .32ms)  I propose defaulting to RGBAFormat to avoid this.

* Revert VideoTexture.js changes.

* Update VideoTexture doc with 'format' default value and note about a Firefox bug.
上级 4ad82434
......@@ -49,8 +49,9 @@
[page:Constant minFilter] -- How the texture is sampled when a texel covers less than one pixel.
The default is [page:Textures THREE.LinearMipmapLinearFilter]. See [page:Textures minification filter constants] for other choices.<br />
[page:Constant format] -- The format used in the texture.
See [page:Textures format constants] for other choices.<br />
[page:Constant format] -- The default is [page:Textures THREE.RGBFormat].
See [page:Textures format constants] for other choices.
Note that a bug has been reported with Firefox's WebGL implementation where use of [page:Textures THREE.RGBFormat] on a VideoTexture can result in a significant performance penalty, if you encounter this issue it is recommended to pass in [page:Textures THREE.RGBAFormat] instead.<br />
[page:Constant type] -- Default is [page:Textures THREE.UnsignedByteType].
See [page:Textures type constants] for other choices.<br />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册