juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.08k stars 504 forks source link

Doesn’t run smoothly on Android phones #956

Open NightRannie opened 2 weeks ago

NightRannie commented 2 weeks ago

Describe the bug Currently we are combining flutter and flutter_unity_widget for app development, and we have built some 3D scenes ourselves It works fine on IOS but not on Android

Expected behavior Hope it works well

Smartphone (please complete the following information):

https://github.com/juicycleff/flutter-unity-view-widget/assets/50985610/9ee9412b-1ca6-4143-b921-06afb0bb496d

timbotimbo commented 1 week ago

The parameter useAndroidViewSurface changes the mode in which Flutter displays Unity on android. False is Virtual display (default) and true is Hybrid composition. You can compare the performance impact of both.

I'm not aware of anything else that impacts performance besides the settings and assets of your Unity project itself.