Stiggz
07-09-2010, 11:34 AM
Hi,
I've written a .OBJ loader that loads all vertices and faces in a given .obj file into arrays, and then uses those arrays to render an openGL scene. I'm loading 3 different files, and thus drawing three different objects in the scene. One of these objects has about 1 million vertices, and the other two have about half that. The more complex object does not need to be redrawn very often, so I'm wondering if it's possible to only redraw the objects I need, while leaving the third as is. I did a little googling and didn't find any commonly accepted way of doing this.
If it's not possible, what else can I do to speed up my program? I'd like movement to be smooth (at least for the two smaller objects), and it's very choppy right now.
Thanks,
Zach
I've written a .OBJ loader that loads all vertices and faces in a given .obj file into arrays, and then uses those arrays to render an openGL scene. I'm loading 3 different files, and thus drawing three different objects in the scene. One of these objects has about 1 million vertices, and the other two have about half that. The more complex object does not need to be redrawn very often, so I'm wondering if it's possible to only redraw the objects I need, while leaving the third as is. I did a little googling and didn't find any commonly accepted way of doing this.
If it's not possible, what else can I do to speed up my program? I'd like movement to be smooth (at least for the two smaller objects), and it's very choppy right now.
Thanks,
Zach