cheers jim ive stuck a delta timer in and i think its working ok does it run smooth on you guys systems now also.
here is the timer code dont know much about c++ timers so i dont know if this is right.
LARGE_INTEGER Frequency;
QueryPerformanceFrequency(&Frequency);
do
{
LARGE_INTEGER liStart;
LARGE_INTEGER liStop;
QueryPerformanceCounter(&liStart);
while (PeekMessage(&msg, scene_window, 0, 0, PM_NOREMOVE))
{
if (GetMessage(&msg, scene_window, 0,0) < 0)
break;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
HDC destdc = GetDC( scene_window );
GenioMain( OffScreenDC , scene_window );
BitBlt( destdc , 0 , 0 , SCREEN_X , SCREEN_Y , OffScreenDC , 0 , 0 , SRCCOPY );
ReleaseDC( scene_window , destdc );
Sleep(0);
QueryPerformanceCounter(&liStop);
LONGLONG llTimeDiff = liStop.QuadPart - liStart.QuadPart;
dftDuration = (double) llTimeDiff * 1000.0 / (double) Frequency.QuadPart;
} while (!quit);