Interior and vehicle NOT colliding/frame rate issue
by Bill Vee · in Torque Game Engine · 05/25/2007 (1:39 pm) · 1 replies
I have a hover vehicle that I removed Interiorobjecttype from its collision mask so it can pass thru Interiors, don't ask why ... just needed it for my game prototype.
My problem is it will go thru the Interior but at very steep cost to the frame rate.
Before it contacts the Interior the frame rate is a solid 125 but the second it penetrates it it drops to less than 10.
The hover vehicle acts as if the Interior is not there but the frame rate just dives until it gets out of the Interior.
I can think of two possible reasons but can't seem to fix it.
1. It may have something to do with the Interior build convex as it has a reference to vehicles in it.
or
2. The Interior wants to do some light/shadow rendering on the shape going thru it.
And yes I know there are more suitable objects I can use instead of a Interior, lets just say I would like to use a Interior for other reasons.
My problem is it will go thru the Interior but at very steep cost to the frame rate.
Before it contacts the Interior the frame rate is a solid 125 but the second it penetrates it it drops to less than 10.
The hover vehicle acts as if the Interior is not there but the frame rate just dives until it gets out of the Interior.
I can think of two possible reasons but can't seem to fix it.
1. It may have something to do with the Interior build convex as it has a reference to vehicles in it.
or
2. The Interior wants to do some light/shadow rendering on the shape going thru it.
And yes I know there are more suitable objects I can use instead of a Interior, lets just say I would like to use a Interior for other reasons.
Torque Owner Bill Vee
Every time I post something I find the answer the next time I look at the code.
I turned off the shadow render for this vehicle and it fixed my problem.