I'm programming an in-game editor for my simple 2D game, where meshes are dynamically created and removed quite often. I'm using *libgdx*

Everything works fine, except that the editor becomes slow. It responds on input events quite late.

To find the weak point in my code (which isn't optimized at all atm), I run *jprofiler* and profiled the CPU. It turns out, that *glGenBuffers* tooks over 2 sec for 14 invocations! That is for 7 meshes, with one vertex and index buffer each. Actually, I have a quite fast machine (i7-4790T, GTX980m, 16GB...), so this shouldn't be the problem here.

I just want to know how this is possible since I have no idea.

![jprofiler](https://projektangriff.de/Screenshot.png)