Hello, I'm having a problem with DarkGDK. While my computer is definitely powerful enough to run this code at a high frame rate, it only runs at 50fps.
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSetDisplayMode( 1920,1080, 32 );
dbSyncOn();
dbSyncRate( 0 );
dbBackdropOn();
while( LoopGDK() ){
dbText( 0,0,dbStr( dbScreenFPS() ) );
dbSync();
};
// and now everything is ready to return back to Windows
return;
}
Whereas the equivalent in darkbasic Professional runs in excess of 200fps.
set display mode 1920,1080,32
sync on:sync rate 0
backdrop on
do
text 0,0,str$( screen fps() )
sync
loop
Specs:
AMD Athlon X4 640 @ 3.2ghz
4GB Ram
ATI 3000 graphics
Any ideas as to why this is happening?
Thanks