Famous / engine

MIT License
1.75k stars 250 forks source link

refact: Reduce redundancy in WebGLRenderer #420

Closed alexanderGugel closed 9 years ago

alexanderGugel commented 9 years ago

Implements a "Registry" class to avoid having to manually keep track of the stored values in a separate array. As a side effect, this also optimizes the process of deregistering objects (especially meshes, where Array#splice has been used before). In the future, the registry could also be used for storing child nodes.

michaelobriena commented 9 years ago

landed as fd577a3