Vector3 vertices
Posted: Sat Mar 19, 2011 7:52 pm
okay i switched the vertices to Vector3 like how my custom contrent processor stores them so things should be faster now right because im not converting them to make a mesh
however with v.15 my load times have gone from 3-4 seconds to 6-8 seconds.. twice as slow? what gives?
StaticTriangleGroup and StaticMesh that much different?
however with v.15 my load times have gone from 3-4 seconds to 6-8 seconds.. twice as slow? what gives?
Code: Select all
for (var i = 0; i < _mapDecor.numS; i++)
{
structure[i] = content.Load<Model>(_mapDecor.structure[i]);
// Look up our custom collision data from the Tag property of the model.
var tagData = (Dictionary<string, object>) structure[i].Tag;
var vertices = (Vector3[]) tagData["Vertices"];
var indices = (int[]) tagData["Indices"];
var mesh = new StaticMesh(vertices, indices);
space.Add(mesh);
// ModelDrawer.Add(mesh);
}