al_rest
void al_rest(double seconds)
Introduced in 5.0.0
Waits for the specified number seconds. This tells the system to pause the current thread for the given amount of time. With some operating systems, the accuracy can be in the order of 10ms. That is, even
al_rest(0.000001)
might pause for something like 10ms. Also see the section
Examples: ex_acodec, ex_acodec_multi, ex_drawpixels, ex_dualies, ex_fs_window, ex_kcm_direct, ex_keyboard_focus, ex_mixer_chain, ex_mouse, ex_mouse_focus, ex_multiwin, ex_opengl_pixel_shader, ex_prim, ex_rotate, ex_scale, ex_threads2, ex_vsync, ex_winfull
Most helpful discussions:
- Mouse Lag / Not Keyboard
- Game Lag Windows to Linux - FPS issue?
- Is using TTFs really that complicated?
- A shader that sets transparancy
- Finding zero crossings in a sample (to eliminate clicking)
- Allegro5 and OpenGL. Problem with drawing Allegro primitives
- Is Allegro5 compatibale with Chrome OS
- Black stripe with menus on Windows
- ALLEGRO_PATH/ALLEGRO_FS_ENTRY and PHYSFS addon
- Is there a way to wait before drawing a bitmap in Allegro5?
Other recent discussions:
- Mipmap causing texture bleeding
- Allegro Access Violation while Drawing
- Fedora 33 and allegro-devel install problem
- Allegro color bitmap
- To get shaders going.
- Weird flex with my Bitmaps on my Screen
- Input routine works, then does not
- [A5] How to properly implement limiting FPS?
- Xcode setup
- Draw to bitmap failing