I have made a .obj loader and I am currently trying to work on increasing efficiency in my draw cycle. I have read that using a simple array and svref instead of elf would make for much quicker array lookups from my data structures where I store vertices and such. My question is there anyway to extend the size of a simple array dynamically? Or would I have to pre parse my file to determine what size array I would need for each data type and then set the simple array to be that size?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.