Comments (5)
Can I do anything to help this one get merged ?
Like a demo or analysis on the impact on the eco-system etc
Let me know!
from react-three-fiber.
Here is a demo using invalidate and Drei Orbitcontrols that perfectly showcase the difference.
When using the controls it request a render. Same when clicking the cube.
At the top of the demo I display the current number of frames queued in the root state.
We can see that the new version never goes over 1 and therefore never call unnecessary renders.
New version using the build from the linked PR
https://codesandbox.io/p/sandbox/basic-demo-forked-92gy2c?file=%2Fsrc%2FApp.js
Old version ( you can see how the frames stack up to 60 )
https://codesandbox.io/p/sandbox/invalidate-fix-forked-7sqggj?file=%2Fsrc%2FApp.js%3A43%2C28
I believe the majority of the ecosystem that use invalidate will keep working fine as long as they were already calling invalidate correctly.
from react-three-fiber.
Out since v8.16.1
. This was the intended behavior, so I'm considering it a bugfix.
from react-three-fiber.
Implemented in #3185.
from react-three-fiber.
Sorry the PR I linked previously (#3187) wasn't about this issue, it was a relatively unrelated issue and duplicate of my previous PR (#3185).
That PR was just about fixing how the parameter was passed but doesn't fix anything here.
This is the PR I intended to do and that would fix this issue.
#3197
edit: I updated the initial issue description to link to the correct PR
from react-three-fiber.
Related Issues (20)
- How to draw 2D views in 3D Canvas with ReactNative? HOT 1
- R3F raycast hits wrong object HOT 1
- It's not possible to preventDefault on onPointerDown HOT 1
- Both example of the "drei" sampler are not working, (cant load hdr file) HOT 1
- Something wrong happens with texture that passed to JSX attribute "map" of material
- createPortal()'s state merging uses stale data HOT 1
- React Native: THREE.GLTFLoader: Couldn\'t load texture in react native HOT 1
- touch action similar to model viewer HOT 1
- Import issue for version 8.16.6 HOT 2
- Invalid hook call with @react-three/fiber HOT 2
- 8.16.5 has breaking types changes HOT 3
- OnPointerUp does not seems to fire always on three js mesh
- Question about compatibility with react compiler HOT 2
- Canvas crashes after rendering first frame. `is.equ` received boolean parameters HOT 1
- R3F mask is not limiting the rendering area of the text
- Resizing the window resets render shadowMap type and/or explodes them.
- Changing Pointer coordinates on canvas "onCreated" callback does not update values on neither "useThree" nor "useFrame" state
- Re-create this scene using react-three-fiber!
- Tutorial on using r3f focused on using OpenGL ES or similar
- instancedMesh onClick behavior
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-three-fiber.