Run physics update in background thread

Physics update account for a big part of the main thread activity, do it in the background to improve performance.