mainloop
nounUK /ˈmeɪnluːp/
US /ˈmeɪnluːp/
The main loop is the part of a computer program that keeps repeating its work over and over.
The game's mainloop checks for key presses and redraws the screen many times each second.
OTHER MEANINGS
2. In game development, the central cycle that updates game state and renders frames.
The mainloop runs at sixty frames per second to keep the animation smooth.
3. In electronics, the primary closed circuit through which current flows.
The mainloop carries the full load current to the motor.
4. In event-driven programming, the loop that waits for and dispatches incoming events.
The GUI toolkit starts its mainloop and then waits for user input.