Implementing multithreaded dynamic cubic environment mapping