Using Rhai to Create and Benchmark Bevy Entities
摘要
The paradigm shift within the industry towards multi-threaded processing has engendered a novel approach to developing highly performant and scalable computing applications. As the fundamental constraints of Object-Oriented programming languages become increasingly apparent in such hardware environments, Data-Oriented Design (DOD) endeavors to redirect developers’ focus away from superfluous abstraction and towards the intricacies of efficiently manipulating substantial volumes of data. While this methodology effectively harnesses the capabilities of contemporary hardware, it also poses a barrier to entry for novice developers and enthusiasts. The Rhai scripting language presents a high-level Application Program Interface (API) that can seamlessly integrate into existing Rust projects, thereby fostering inclusivity within this community. An investigation into the inherent performance ramifications of adopting such an approach will be conducted within the framework of DOD-centric data structures.