void al_update_display_region(int x, int y, int width, int height)
Introduced in 5.0.0

Does the same as al_flip_display, but tries to update only the specified region. With many drivers this is not possible, but for some it can improve performance.

The ALLEGRO_UPDATE_DISPLAY_REGION option (see al_get_display_option) will specify the behavior of this function in the display.

See also: al_flip_display, al_get_display_option

Examples: ex_font

Most helpful discussions: