I have been experimenting with Intel's Inspector tool (30 day trial) which can detect memory issues such as Uninitialized Memory. I have found quite a few potential problems in my code, but I've noticed one in bullet too. It could be nothing, but I thought I should report it in any case. I don't know the source very well, so hopefully someone can figure out if it could be a problem.
The memory is allocated in insertLeaf / createnode: -
Code: Select all
btDbvtNode* prev=root->parent;
btDbvtNode* node=createnode(pdbvt,prev,leaf->volume,root->volume,0);
Code: Select all
191 while(prev)
192 {
193 const btDbvtVolume pb=prev->volume;
194 Merge(prev->childs[0]->volume,prev->childs[1]->volume,prev->volume);
195 if(NotEqual(pb,prev->volume))
196 {
197 prev=prev->parent;
198 } else break;
199 }
Hope this helps!
All the best,
Ash