Optimize gui refresh times