Performance optimization
update
Prepare data before draw