Original Post
So I finally did some playing around with PIX today (yeah, I know I'm behind the times) and I found my library (which is for 2D stuff) is locking its dynamic vertex buffer more than once per frame and the number varies depending on how many state changes there are. In the worst case with my test app it was locking the buffer around 11 times per frame (for something like 4000 sprites). Now, before I go tearing apart my renderer and perhaps causing a maintenance nightmare for myself I have to ask: Knowing that I should aim for the least number of locks possible per frame, is 11 locks per frame really all that bad? Is it worth the incredibly time consuming effort to try and knock it down to one or two locks per frame? Or should I only be concerned if I get to 100+ locks per frame? I know how to fix it up to get it down to a minimum number of locks, but it's going to end up being a rewrite of a sizable (and quite stable) chunk of code. I want to know if it's really worth it.