Hi all,
while testing frame rates I came upon the following problem: changing between UseVerticalSync(true) and UseVerticalSync(false) does not make any difference. On my desktop computer I have a frame rate of 250 Hz (graphics card set to 60 Hz) irrespective of VerticalSync true or false. On my Laptop I have a frame rate of 40 (!) Hz (graphics card set to 60 Hz).
while( Screen0.IsOpened() ) {
Screen0.UseVerticalSync(true); // or false
Clock.Reset() ;
do {
Screen0.Draw( Text ) ;
Framerate = 1.0f / Screen0.GetFrameTime();
std::sprintf( buf, "Refreshrate %5.2f Hz", Framerate ) ;
Text2.SetText( buf ) ;
Screen0.Draw( Text2 ) ;
Screen0.Display() ;
} while( Clock.GetElapsedTime() < 5.0f ) ;
Screen0.Close() ;
}
Obviously UseVerticalSync does not work. Does anybody have any idea why?