also in the shape class the update method doesn't really need to be called every frame since it's doing always the same. you can move that code to setup. the colors also don't change so instead of clearing the vboMesh every frame you can put the colors in it at the beginning and then only clear and update the vertices. with that i get 1% cpu usage
↧