Experiments in using Lua with sol2 and how best to structure the data. Contains a shoot out of SOA, vs AOS vs. MOA. SOA = Struct of Arrays AOS = Array of Structs MOA = Many Array of Structs (kind of a hybrid)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Zed A. Shaw b8b376d927 Fixes from Antonio. 1. I had -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 in the meson.build. 2. The moa_many_for test had a copy-pasta extra extra for-loop that made it slow. Fix those two and the results match expectation with auto&:for doing better than indexing. 12 hours ago
scripts Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
src Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
tests Fixes from Antonio. 1. I had -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 in the meson.build. 2. The moa_many_for test had a copy-pasta extra extra for-loop that made it slow. Fix those two and the results match expectation with auto&:for doing better than indexing. 12 hours ago
wraps Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
.gitignore Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
.vimrc_proj Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
LICENSE Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
Makefile Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
README.md Demonstrates a weird perf mystery regarding auto&for loops. 1 day ago
meson.build Fixes from Antonio. 1. I had -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 in the meson.build. 2. The moa_many_for test had a copy-pasta extra extra for-loop that made it slow. Fix those two and the results match expectation with auto&:for doing better than indexing. 12 hours ago

README.md

sol2 testj

Just a quick test of using sol2 and also how a God Object System would work as an alternative to ECS but using sol2/lua.