ender2012 wrote: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?
slobodan.blazeski wrote:VECTOR-PUSH-EXTEND is what you want but array must be adjustable.
http://www.lispworks.com/documentation/ ... vec_ps.htm
Arrays are continuous blocks of memory I really doubt you will gain much if at all by using simple array especially in accesing elements.
Maybe it would be better if you make your code with adjustable array and then profile where the problem really is.
Users browsing this forum: Bing [Bot] and 3 guests