Closed Kuranes closed 9 years ago
Thanks to the @stephomi the reason for the bug is clear: it's recursive. No other way than storing that into a member variable of the class. more memory, but way better GC handling. (other solution is using the global mem pool of objects )
See: https://github.com/cedricpinson/osgjs/tree/feature/multiFrustumAndShadowBounds/sources/osg/Node.js#L231
if using a closure to cache the "new bbox" it doesn't work rightly anymore. ( check frustum culling sample for instance )
Works if adding a member to Node class. But that means Higher Memory overhead. (but better than GC pollution)