Skip to content
Discussion options

You must be logged in to vote

they are. and that will quickly become a problem. if you want to share geometries and materials you can put them in global space, or into a state manager. for instance: https://codesandbox.io/s/zxpv7?file=/src/App.js

everything you load via useloader is cached and can be re-used without problem. you can also use use-asset directly (a caching library) in order to cache and re-use resources.

another thing that will become important is instancing. each mesh, even if you re-use geometries and materials means a draw call. you can have maybe a 100 of those if they're reasonably complex. if you can't instance look into this: https://twitter.com/0xca0a/status/1413600110177574915

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@andersonjoseph
Comment options

@Kinatzo
Comment options

@drcmda
Comment options

Answer selected by andersonjoseph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants