# Update [RCBasic Doc]

## Sub Update()

This is the most important function in a graphics window. It must be called every frame.

It performs a few different operations

1. Renders all graphics
2. Checks for every event on the window
   - Keyboard and Mouse Events
   - Joystick Events
   - Window Control Events (minimize, maximize, close, etc.)
3. Updates the physics simulation for 2D and 3D objects if enabled
4. Makes breakfast if you are hungry

If you have a window open, you should have this function being called in your main render loop every frame.