Skip to content

How to temporise node spawn #41

Answered by dsaffo
arthurmougin asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for sharing this sample! I managed to recreate your example and I have some suggestions you could try.

  1. I separated the data processing and network code and ran the chrome performance profiler. The whole tasks takes 124ms and the data prep takes up about half of that time (54ms). So if possible pre-proccess those csv into the target json format before run time.

  2. When setting lots of properties on lots of nodes its better to use .props() so that you only loop through the selected nodes list once. Also when using instances try to set as many properties as you can on the root node before instancing, since these properties will get copied anyways.

  3. If there is an FPS issue on your d…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dsaffo
Comment options

Answer selected by dsaffo
@arthurmougin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants