1. A method for executing vertex shader in a computer system, the method comprising: running a first vertex shader in a first CPU thread for a predetermined vertex shader command when a GPU is overloaded by a vertex shader execution; buffering an output of the first vertex shader; running a second vertex shader in the GPU for z-values of the predetermined vertex shader command; and replacing z-values produced by the first vertex shader with the z-values produced by the second vertex shader.