ray trace using multiple cores