Karl Bergström

Results 68 comments of Karl Bergström

> > In particular, I don't like that entity/UUID mappings are persisted for the lifetime of the universe. This means accumulated wasted memory if you were moving in a large,...

> It has two deserialize fns her because the "packed" and "entities" layouts are different enough that it would perform poorly if I tried to use just one fn for...

> I suppose I could do that, but the cost difference between a fn call and a virtual fn call, when considering that the code being called is deserialization code...

@TomGillen That sounds really good - is `master` where I can look at your current progress to give more specific feedback?

Hey @TomGillen I had a stab at making our prefab stuff work, and had to change a little. Could you have a look? Mainly it was about making the traits...

@TomGillen You mean without @aclysma 's change in his branch here: https://github.com/aclysma/legion/tree/legion-0.3-prefab-support ?

Done @TomGillen https://github.com/TomGillen/legion/pull/180

I have FFI implemented for an older version of legion: https://github.com/kabergstrom/legion/blob/master/src/c_api_query.rs https://github.com/kabergstrom/legion/blob/master/src/c_api.rs I have no immediate plans to continue work on it so feel free to pick up on it.

> I looked through the code and I think I know what's happening, you're basically storing pointers to the components and tags in legion, not the data it self. No...

That should work, good use-case! I used easy_ffi in my repo, I think it's good enough.