Synchronize physics and graphics threads.