Implemented shader compiling in a different thread, and reduced the text editor lag.