AddictArts/three.js — comment on commit 3a4b8d442c0c547007bb6bccafe9e4a32f5cf898
File:  line 0
By alteredq:

Hmmm, is there a reason why you can't set `geometry.dynamic` before the first render, when you just got data from the callback?

Usually we do all initializations / set up before things get rendered, whole library is built in this way, it allows for a lot of optimizations.

For procedural synchronous stuff that's simple, for asynchronous things there should be callbacks where you can control order of execution (e.g. you add object to scene only after it's set up, or let texture update only after image was loaded).

Also you don't need `geometry.dynamic` (unless you use dirty flags to change content of buffers) if you just need to update transforms:

https://github.com/mrdoob/three.js/wiki/Updates