Hi Beaker, unless I have got it wrong (possible) when you define an array of types you still need to "new" each array element, hence "references". So even though they can be accessed just like regular arrays they are not contiguous in memory. At the moment in PB when I declare the array a contiguous block memory is immediately reserved and kept for the lifetime of the program. As well as each node being generic (because of unions), the advantage is a lot of on-the-fly mem alloc/dealloc is avoided and hopefully contiguous memory is cache-able.
I'm pretty sure performance won't take a noticeable hit when converted to BM but I'm still trying to figure out the most efficient way to structure a scenegraph in BM. It's early days yet.
I'm pretty sure performance won't take a noticeable hit when converted to BM but I'm still trying to figure out the most efficient way to structure a scenegraph in BM. It's early days yet.