- Home /
Question by
aswinthomas · Mar 20, 2015 at 05:28 AM ·
openglmultithreadingparallel
Parallel GL
Hi all, I am doing some GL rendering and there are some serious delays due to iteration. Is there anyway to do this operation in parallel? In the operation below, the FPS drops from 75 to 25.
void OnPostRender()
{
GL.PushMatrix();
lineMaterial.SetPass(0);
for (int i=0; i<100000; i++)
{
GL.Begin(GL.LINES);
GL.Color(Color.cyan);
GL.Vertex(line [0]);
GL.Vertex(line [1]);
GL.End();
}
GL.PopMatrix();
}
Comment
Your answer
Follow this Question
Related Questions
Using the GPU instead of multiple threads 1 Answer
Update texture on Android native plugin 0 Answers
Does Unity iPhone support calls to the GL Class? 2 Answers
runtime check for OpenGL 1 Answer
GL ES1 vs ES2 (for iOS) 1 Answer