timer and texture drawing