Am 22. Oktober 2016 08:36:21 MESZ, schrieb Larry Evans
On 10/21/2016 08:11 PM, Andreas Schäfer wrote:
Heya,
On 13:46 Sun 16 Oct , Michael Marcin wrote:
Would something like an soa_vector, that's resizable at runtime and behaves much like a std::vector better suit your needs?
Yes exactly that.
just FYI: I've added a basic soa_vector to LibFlatArray's trunk[1]. It's not perfect, but allows basic usage and particle callbacks (see test[2]). I'm looking forward to benchmarking that code. :-)
Maybe by modifying:
https://github.com/cppljevans/soa/blob/master/codepad.eol6auRN.cpp
by inserting another struct, say LifFlatArray_emitter_t, which uses soa_vector. I, and I guess, Michael, would be interested in seeing the output from such a modification.
Good idea, that should be interesting. Will do! Cheers -Andreas -- Sent from my mobile. No type gold.