How to know if object is visible on the screen?

For example, to move or update only the visible objects.