I forgot to mention that I had asked a nvidia developer about this and he said it was due to the overhead of many xlib calls.
I forgot to mention that I had asked a nvidia developer about this and he said it was due to the overhead of many xlib calls.