I have a three.js game, I want to be able to load information about different players in the game by loading the file with either php or ajax. But if I load a file at all, the three.js game gets very slow and choppy.

That's a lot of code to read through to really get to the bottom of the issue. Any chance you could create a working example? You could use jsfiddle.net
– MarquizzoMar 14 at 23:17

The code you have is embedding it in the file, not loading it via ajax Try loading the file via ajax after you have sent the html file. Then if you still have problems, maybe put the loading into a webworker
– 2phaMar 15 at 1:50

I have already tried loading the file with ajax and php, but both come up with the same result, and I have a working example at to-evangelos.000webhostapp.com/index.php
– Argentum ManusMar 15 at 13:02