take into account tick time when world is playing
fix some resize problems