Authors: Mr. Yuvraj Singh Sanhotra, Mr. Keval Siddhapura, Dr. Jasbir Kaur, Mr. Suraj Kanal
Abstract: The integration of native game engines into cross-platform mobile application frameworks poses substantial architectural challenges, particularly when reconciling Flutter’s declarative Dart-based UI system with Godot Engine’s native C++ rendering pipeline. Existing embedding approaches suffer from bidirectional communication latency, rendering pipeline conflicts that cause view misalignment, platform-specific imple- mentation complexity, and the inability to host multiple game instances within a single process. This paper presents a novel framework for integrating Godot Engine games into Flutter applications on the Android platform. Unlike prior work that embeds Godot as a PlatformView within the same process, the proposed solution employs a slot-based process isolation archi- tecture where each Godot game instance runs in a dedicated An- droid process. The framework implements bidirectional commu- nication via MethodChannel with a JNI-native C++ bridge, com- prehensive lifecycle management, and performance monitoring through atomic counters. Experimental results demonstrate that process isolation circumvents Godot’s single-instance-per-process limitation, provides crash containment, and enables independent lifecycle management of multiple game sessions while maintaining Flutter host responsiveness. Quantitative evaluation shows that the framework sustains 60fps for simple scenes and achieves sub-5ms round-trip latency for small messages.
International Journal of Science, Engineering and Technology