Terraria does not have an in-game v-sync setting, so you will need to do it in your video settings for your gpu. NVIDIA Control Panel>Manage 3D Settings>Vertical Sync set to On. AMD Control Center>Preferences>Advanced View>3D Application Settings>Vertical Refresh Always On. Intel Control Panel>General Settings>Vertical Sync>On.