display_get_timing_method


Description

This function can be used to retrieve the timing method to be used for rendering your game. The method can be one of the constants listed below.

For more information on the different timing methods, please see display_set_timing_method().


Syntax:

display_get_timing_method();


Returns:

Constant

Constant Description
tm_sleep The sleep margin value is the main timing method
tm_countvsyncs Vsync timing is the main timing method (default for all supported platforms)


Example:

if display_get_timing_method() != tm_sleep
{
display_set_timing_method(tm_sleep);
if display_get_sleep_margin() != 20
    {
    display_set_sleep_margin(20);
    }
}

The above code will check the timing method and then if it's not set to tm_sleep it will be set to that and the sleep argin set to 20.