Prepare stuff for the asynchroneous photon simulation thread