Open caticHarun opened 1 year ago
This may be related to https://github.com/pmndrs/react-three-fiber/issues/3109
Which was due to a change here https://github.com/pmndrs/drei/compare/v9.80.2...v9.80.3
@caticHarun try adding an override in your package.json for three-stdlib (2.25.1)
"overrides": {
"@react-three/drei": {
"three-stdlib": "2.25.1"
}
},
Also add to your root dependencies.
"three-stdlib": "2.25.1"
I also experience this on Drei 9.65.3
and indeed think it is related to three-stdlib
. It does not occur when locking three-stdlib
to an older version. The changeEvent
in OrbitControls is somehow dispatched each frame, which causes Drei's OrbitControls
to call invalidate()
which seems to create its own render loop
Before Update
three
version: ^0.149.0@react-three/fiber
version: ^8.11.0@react-three/drei
version: ^9.56.24After Update
three
version: ^0.149.0@react-three/fiber
version: ^8.14.2@react-three/drei
version: ^9.84.2Node and NPM Version
node
version: v18.10.0npm
(oryarn
) version: 8.19.2Problem description:
Before the update everything worked all right. After the update,
<OrbitControls/>
are not compatible with frameloop="demand" when the default camera is Orthographic Camera. I am using<Stats />
to verify this problem. When the Ortographic Camera is the default camera then the FPS Counter is constantly updating. When I switch over to the Perspective Camera it only updates on controls update.Relevant code:
Cameras:
Controls: