I'm writing a loader for MD5 and I'm at the animation part right now. The models should be for a game and be rendered with vertex arrays and I wonder which is the best:

1. Calculate the vertex arrays on the frame they should be used
2. Precalculate all of them and make a vector (estimated 1 MB/animated model)

The calculation of vertex arrays for one model is 12-15 milliseconds per frame on my computer - and that brings down the framerate from 50 to 27 fps. I wonder if something is wrong with how I calculate things or does it generally take long time to calculate it?

Thanks for your help

The Wazaa