Skip to content

In WebGPURenderer, why does using a different camera cause renderContext to switch? #32020

@Reinhard2019

Description

@Reinhard2019

Description

In WebGPURenderer, when I render the same scene with different cameras in a row, I find that the renderContext switches all the time, which causes subsequent frames to render longer times.

WebGPURenderer example:

jsfiddle-latest-release WebGPURenderer

Image

In WebGLRenderer, Even if you use different cameras, you won't have this problem

WebGLRenderer example:

jsfiddle-latest-release WebGLRenderer

Image

Reproduction steps

Code

// code goes here

Live example

Screenshots

Version

0.180.0

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions