arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.10263cs.GRcs.HC
收藏

Infernux:一个具有JIT加速脚本的Python原生游戏引擎

Infernux: A Python-Native Game Engine with JIT-Accelerated Scripting

Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院)

Lizhe Chen

AI总结:

Infernux结合C++17/Vulkan实时核心与Python生产层,通过pybind11边界实现,采用批量数据传输和JIT编译技术提升性能,对比Unity 6展示其在三个工作负载上的表现。

摘要:

本报告描述了Infernux,一个开源游戏引擎,其结合了C++17/Vulkan实时核心与通过单个pybind11边界连接的Python生产层。为缩小Python脚本与原生代码引擎之间的吞吐量差距,Infernux将两种已建立的技术——面向批次的数据传输和JIT编译——整合为一个统一的引擎级集成:(i)一个面向批次的数据桥,将每帧状态转换为连续的NumPy数组,仅在边界跨过一次;(ii)一个可选的JIT路径通过Numba,将注释的更新函数编译为LLVM机器代码,并自动进行循环并行化。我们以Unity 6作为参考,在三个工作负载上进行比较;读者应注意两个引擎之间着色器复杂度、绘制调用批处理和编辑器工具成熟度的差异。Infernux采用MIT许可证,并可在https://chenlizheme.github.io/Infernux/上获得。

英文摘要:

This report describes Infernux, an open-source game engine that pairs a C++17/Vulkan real-time core with a Python production layer connected through a single pybind11 boundary. To close the throughput gap between Python scripting and native-code engines, Infernux combines two established techniques - batch-oriented data transfer and JIT compilation - into a cohesive engine-level integration: (i) a batch data bridge that transfers per-frame state into contiguous NumPy arrays in one boundary crossing, and (ii) an optional JIT path via Numba that compiles annotated update functions to LLVM machine code with automatic loop parallelization. We compare against Unity 6 as a reference on three workloads; readers should note differences in shading complexity, draw-call batching, and editor tooling maturity between the two engines. Infernux is MIT-licensed and available at https://chenlizheme.github.io/Infernux/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑