Can i Load whole collision geometry at the beginning ?

rocksvick
Posts: 5
Joined: Mon Aug 29, 2011 9:56 am

Can i Load whole collision geometry at the beginning ?

Post by rocksvick »

i am newbie to bullet . i am working on car game . i want to load my track's static collider using btTriangleIndexVertexArray . but i think if i will do that , it will degrade performance because a lot of collider data will be loaded. so is there any way so that only some part of collider data will be loaded at a time . collider data will consist of road data , side colliders etc .
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Can i Load whole collision geometry at the beginning ?

Post by Erwin Coumans »

It is best to load the whole collision geometry from the beginning, whenever possible. Generally I would only recommend streaming collision data if the full data doesn't fit inside memory, not for performance reasons.

Bullet uses efficient acceleration structures for both broadphase and midphase (triangle mesh).
Thanks,
Erwin