This paper proposes a delay mechanism to mitigate the impact of latency differences in the gRPC framework--a high-performance, open-source universal remote procedure call (RPC) framework--between different programming languages on the performance of agents in DareFightingICE, a fighting game research platform. The study finds that gRPC latency differences between Java and Python can significantly impact real-time decision-making. Without a delay mechanism, Java-based agents outperform Python-based ones due to lower gRPC latency on the Java platform. However, with the proposed delay mechanism, both Java-based and Python-based agents exhibit similar performance, leading to a fair comparison between agents developed using different programming languages. Thus, this work underscores the crucial importance of considering gRPC latency when developing and evaluating agents in DareFightingICE, and the insights gained could potentially extend to other gRPC-based applications.
翻译:本文提出一种延迟机制,以缓解gRPC框架——一种高性能开源通用远程过程调用(RPC)框架——中不同编程语言间的延迟差异对DareFightingICE(一款格斗游戏研究平台)智能体性能的影响。研究发现,Java与Python之间的gRPC延迟差异会显著影响实时决策。若无延迟机制,基于Java的智能体由于Java平台下更低的gRPC延迟,其表现优于基于Python的智能体。然而,采用所提出的延迟机制后,基于Java与Python的智能体展现出相近的性能,从而实现了对不同编程语言开发的智能体之间的公平比较。因此,本工作强调了在DareFightingICE中开发与评估智能体时考虑gRPC延迟的关键重要性,所获得的见解可能拓展适用于其他基于gRPC的应用场景。