What FPS are people getting in their GDK programs? The following code for me runs at 60fps, whereas in DBPro, it'll run in the hundreds.
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "string.h"
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbSetDisplayMode( dbDesktopWidth(), dbDesktopHeight(), 32 );
dbSetWindowLayout( 0, 0, 3 );
dbSetWindowSize( dbDesktopWidth(), dbDesktopHeight() );
dbSetWindowPosition( 0, 0 );
dbWindowToFront();
dbRestoreWindow();
dbSetCameraFOV( 0, 65.0f );
dbBackdropOn();
dbColorBackdrop( 0 );
dbSetCameraAspect( 0, (float)( dbDesktopWidth() + 0.0 ) / (float)( dbDesktopHeight() + 0.0 ) );
dbSyncOn();
dbSyncRate( 0 );
dbSync();
// our main loop
while ( LoopGDK ( ) )
{
dbText( 0, 0, dbStr( dbScreenFPS() ) );
// update the screen
dbSync( );
}
// return back to windows
return;
}