Performance of collision heightfield vs. collision mesh?

Hmmm… just a few ideas why triangle mesh might be better in your case:

1.) If it is not an off-road racing game then the race is over once you leave the road. 90 percent or more of your terrain will never get in contact with a car. So why checking for collisions off the roads?

2.) The heightfield you use might have 1024x1024 pixel, but this is still very coarse grained for a game which virtually depends on interaction between tires and ground. And the edges of the heightfield triangles are all rectangular aligned. Using a triangle mesh your level designers could create more “realistic” terrains, and smoother transitions from one triangle to the next.

3.) As far as I know we have not exposed a way to define per-triangle materials for heightfields. so all of your terrain will have a single material.

I have seen that you want to create random tracks. So hand-modelling the tracks is not an option for you. Still I would consider doing this for the first track, to see what factors have influence on the vehicle simulation, and tweak until you are satisfied with the results. Then start working on a generator for collision meshes.

Finally, one of the first things you should check is if the Bullet vehicle dynamics suit your needs, since we have not exposed a way of “customizing” them, e. g. by modifying tire/ground contacts inside callbacks. I have tried to setup simple vehcile demons both with Bullet and PhysX, and never have been satisfied with the results. Maybe I just don’t find the right tuning parameters, but using ODE I did not have such problems.