dynamic speed based on ticktime