only draw objects that are on screen, and made editor only draw the visible parts