3 ms·
Do you know how big the performance cost would be when scripting with the new ECS APIs? Does the indirection involved mean that we lose some benefits of cache l
by Rivide 4y ago
Do you know how big the performance cost would be when scripting with the new ECS APIs? Does the indirection involved mean that we lose some benefits of cache locality?
- _cart 4y agoThis Javascript / TypeScript implementation is still doing table + sparse set iteration, so I suspect cache locality is still reasonable. But you'd want to test to be sure. https://github.com/jakobhellermann/bevy_mod_js_scripting/blob/main/src/runtime/ecs.rs https://github.com/jakobhellermann/bevy_mod_js_scripting/blo... Given how new this effort is, I suspect there are plenty of areas with room for improvement.