I need to render a lot of objects that swap their model from frame to frame.
Currently, I am putting every model into a single vertex buffer and giving every vertex an id. I store the same id in the instance buffer. If the vertex and instance buffer ids match in the vertex shader, then I render it. It works, but since I'm rendering tens of thousands of objects, I can only fit about 1000 vertices into the vertex buffer before rendering exceeds 16ms. This translates to about 2-3 models.
Is there some other technique I could use to swap them out where I could get maybe 10-20 models?