reduce UI gl commands