cjhowe
Is it possible to use `Span` with a type erased `System.Array` created with `Array.CreateInstance`?
BTW, this is like the 3rd or 4th language I've written this code in; it's definitely possible in C++. But not sure storing managed objects in unmanaged C++ memory is a great idea
73 replies
Is it possible to use `Span` with a type erased `System.Array` created with `Array.CreateInstance`?
Like, think of it this way: even if I know all combinations of components at compile time that are used with my functions, you can add two different sets of components to the same entity. So this means I can't determine the actual types an entity might have until runtime
73 replies
Is it possible to use `Span` with a type erased `System.Array` created with `Array.CreateInstance`?
What I'm doing is a little out there, but it's pretty much a high performance parallel ECS. Since I will be running a great deal of queries on a great deal of entities, and I don't want to serialize all mutation, I want to allow in place edits of structs. This should be faster than using a class reference type I think?
73 replies
Is it possible to use `Span` with a type erased `System.Array` created with `Array.CreateInstance`?
Basically, I'm going to do queries that have to be high performance, that will let you mutate things in place (no adding/removing/moving components)
73 replies
Is it possible to use `Span` with a type erased `System.Array` created with `Array.CreateInstance`?
Sure, this is what I have now: https://gist.github.com/cjhowedev/efa28aa75258b5ace3f513e640d320aa
73 replies