Replies: 3 comments 2 replies
-
from what i remember you cant do there's also a readymade starfield here: https://github.com/react-spring/drei |
Beta Was this translation helpful? Give feedback.
-
Hey Paul! thanks so much for the tips!!
Definitely I will look into "instancedmesh".
Thanks again for making React-Three-Fiber. It's awesome.
…On Sun, Aug 9, 2020 at 5:15 AM Paul Henschel ***@***.***> wrote:
from what i remember you cant do export Name = forwardRef((props, ref) =>
{ it needs to be export Name = forwardRef(function Name(props, ref) { if
you want to have a named function to show up. as for keys, you most likely
map over something without giving it proper keys, that's what the error
indicates. if it isnt the stars it some other component. btw, rendering
1000 stars like creates 1000 drawcalls, that's very taxing for performance.
look up instancedmesh, it lets you create hundreds of thousands of objects
in a single drawcall. https://codesandbox.io/s/r3f-instanced-colors-5o0qu
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK5DDSOQO6VTPNH3PNMW6WDR72HPXANCNFSM4PZAKJ6Q>
.
|
Beta Was this translation helpful? Give feedback.
-
Have a recommendation on the best way to make sure that the react-three-fiber's frame rate the same on super fast computers? On 90% of computers my animations look cool. But on my friend's suuuuuuper fast gaming PC, it runs like 3 times too fast haha (I'm using useFrame. maybe there is a timed frame function that is built into React? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, hope y'all are having a fantastic day/evening.
One issue I'm having and one general question.
I keep getting an error in the console about unique keys
Also curious why all react three fiber components render as "anonymous" in the browser is there a fix for that or am I using react-three-fiber wrong?
Beta Was this translation helpful? Give feedback.
All reactions