Hey!!
Ok, so i'm just starting 3D game programming and i'm doing the tutorials that come with the Dev Kit.
I'm doing fine... but I can't understand a couple of things, perhaps someone could be kind enough to enlight me!!
// Dark GDK - The Game Creators - www.thegamecreators.com
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbPrint ( "Please wait loading model..." );
dbSync ( );
dbSync ( ); //I can't understand why are these "dbSync" needed for in this part of the code, or at least, why TWO of them
dbLoadObject ( "Colonel-X.X", 1 );
dbPositionCamera ( 0, 50, -80 );
dbLoopObject ( 1 );
dbSetObjectSpeed ( 1, 40 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Then, I don't know about you guys, but I noticed that when compiling this project, it takes considerably long to load a model, than to load a whole level or even a terrain... any resonable explanation for this?
thanks in advance!!