This is my constructor when I create a model:
MH_Model::MH_Model(int dbNumber, char* directory, char* filename)
{
itsDirectory = directory;
itsFilename = filename;
itsObjectNumber = dbNumber;
dbCLS();
dbText(0, 0, "Loading Model..." );
dbText(0, 15, "Location: ");
dbText(80, 15, directory);
dbSync();
dbSetDir(directory);
dbLoadObject(filename, dbNumber);
itsRotateX = 0;
itsRotateY = 0;
itsRotateZ = 0;
setAnimationData();
loadAnimationData();
//createAnimationDataFile("wooo");
}
And this is how I call it.
//////////Create and setup model//////////////////////
MH_Model colonel(1, "CharacterMediaColX", "Colonel-X.X");
colonel.setRotation(0, 180, 0);
dbTextureObject(1, 10);
dbColorObject(1, dbRGB(0, 0, 0));
dbSetObjectSpecular(1, dbRGB(50, 50, 50));
dbSetObjectSpecularPower(1, 0.4);
I dont understand why it takes so long to load on my laptop as I think the CPU is faster and it has more RAM.
I just had a thought but have no time to test it right now, my laptop is widescreen and my game is 1024 by 768.
I have a vague memory of something similar happening before when I changed the screen size it seemed to slow the loading process, I will try messing with it later, anyone else experience anything like this?