AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkApplication.SetSyncRate Method

Sets the desired rate that frames will be drawn to the screen, in frames per second (fps).

Syntax
Pascal
procedure SetSyncRate(const FrameRate: Single; const Accurate: Boolean = False);
Parameters 
Description 
const FrameRate: Single 
desired frame rate in frames per second. 
const Accurate: Boolean = False 
(optional) whether to use a more accurate but CPU and battery intensive mode (see Remarks). 

When Accurate is False (default), the application sleeps between frames to save CPU and battery life where possible. When Accurate is True, it uses a continuous loop to check the time before the next frame, which can be more accurate but hogs the CPU.

Copyright (c) 2012. All rights reserved.