Does vec_for_vertex affect performance?

Posted By: Anonymous

Does vec_for_vertex affect performance? - 09/15/02 00:06

If I want to attach models to my characters with vec_for_vertex(), a lot say 30 attachments to each character, and a lot of characters, would it heavily affect performance?
Posted By: WildCat

Re: Does vec_for_vertex affect performance? - 01/17/03 01:25

I use vec_for_vertex a lot and never had a any problems with it on speed... I don't think I've ever hammered it as hard as you plan to... I think your best bet is to simply give it a shot.

If worse comes to worse, you can always do it the old fashoned way and create each model in the correct relative position to the base model, like we did before we had vec_for_vertex.

Each base model would create all of it's sub-parts and each of them would position themselves with vec_set(my.pos,your.pos); my.frame = your.frame.

Good luck... let me know how you make out.

- WildCat
Posted By: Anonymous

Re: Does vec_for_vertex affect performance? - 01/17/03 02:32

What you are planning will not affect the framerate at all, I'm currently using vec_for_vertex to get each and every vertex position on my character-models (for an ego-shooter, multiplayer) and converting them to relative values, calculate frame positions angles... (simulated bones [Smile] ) and then using vec_to_mesh to aplly these calculated vertices onto my models, this worked fine with 6 characters (a 1200 vertices), no performance lost
© 2024 lite-C Forums