display_get_windows_vertex_buffer_method

Gets the buffer method used on the Windows target platform.

Syntax:

GML Code Example

display_get_windows_vertex_buffer_method();


Returns:Constant


Description

This Windows only function permits you to find out the current method for handling the game geometry vertex buffer. This can be set in the Global Game Settings Windows tab or with the function display_set_windows_vertex_buffer_method(), and will return one of the following constants:

Constant Description
vbm_fast This is the default method and is the one recommended by Nvidia - it should give the highest performance.
vbm_compatible This is the deprecated method that GameMaker: Studio used to use before adopting the fast method - poorer performance on newer machines
vbm_most_compatible This is the legacy method that was used in previous versions of GameMaker - performance is poorer than the other two, but it should be compatible with almost any machine.


Example:

GML Code Example

if display_get_windows_vertex_buffer_method() != vbm_fast
    {
    display_set_windows_vertex_buffer_method(vbm_fast);
    }
 

The above code will check the current geometry method and set it to "fast" if it is not already.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here