thread sleep and g2d upgrade