Currently FORMS_Pen draws all controls even if they're outside of the visible area. In this case their rendering should be simply skipped, but still advancing the pen's position as normally. Handling of logic can be also skipped, where it makes sense (for example there is no point in checking for mouse clicks if the control is not visible and can't be clicked).