Bennu Game Development

English Forums => Platforms => Android => Topic started by: Grew on February 20, 2016, 08:04:45 PM

Title: BennuGD very slow on LG G4
Post by: Grew on February 20, 2016, 08:04:45 PM

Hi !
My BennuGD game is very slow on LG G4.
Does someone  know why BennuGD is slower on certains smartphones ? The LG G4 is not an old smartphone, it should works normally.


Thanks !
Title: Re:BennuGD very slow on LG G4
Post by: josebita on February 20, 2016, 10:22:55 PM
No idea.
Could you share it so that I can treat it in my Nexus 5?
Title: Re:BennuGD very slow on LG G4
Post by: panreyes on February 20, 2016, 11:31:54 PM
Hi Grew!

I'm pretty sure you're using one of the first builds, which hadn't hardware escalation and were really slow on HD devices.
Title: Re:BennuGD very slow on LG G4
Post by: Grew on February 21, 2016, 10:08:49 AM
Quote from: josebita on February 20, 2016, 10:22:55 PM
No idea.
Could you share it so that I can treat it in my Nexus 5?
Thank you for your help, but I've already tried on Nexus 5, it works well (60 fps).


Quote from: PiXeL on February 20, 2016, 11:31:54 PM
Hi Grew!

I'm pretty sure you're using one of the first builds, which hadn't hardware escalation and were really slow on HD devices.
I don't know if I'm using the last version of BennuGD, but it woks well on these (HD) devices :
The only one I have tested which is very slow is LG G4.
I will check my BennuGD version and try with the last one.

EDIT : I'm using the last version from here : http://www.bennugd.org/node/2 (r307).
Title: Re:BennuGD very slow on LG G4
Post by: panreyes on February 21, 2016, 12:39:56 PM
Have you tried to compile it with PixTudio?
Title: Re:BennuGD very slow on LG G4
Post by: Grew on February 24, 2016, 06:54:25 PM
Yes but I've encountered a bug :


(http://img4.hostingpics.net/pics/290239Screenshot20160224194347.png)


I have not taken the time to look more closely.
Title: Re:BennuGD very slow on LG G4
Post by: Goku jr on February 24, 2016, 09:27:45 PM
Solution
http://forum.bennugd.org/index.php?topic=4148.75
Title: Re:BennuGD very slow on LG G4
Post by: Grew on February 25, 2016, 09:01:34 AM
Quote from: Goku jr on February 24, 2016, 09:27:45 PM
Solution
http://forum.bennugd.org/index.php?topic=4148.75 (http://forum.bennugd.org/index.php?topic=4148.75)
Thank you, but the problem here seems to come from mikmod library. The openal library is already imported in the Android PixTudio project.
Title: Re:BennuGD very slow on LG G4
Post by: Goku jr on February 25, 2016, 12:50:04 PM
Quote from: Grew on February 25, 2016, 09:01:34 AM
Quote from: Goku jr on February 24, 2016, 09:27:45 PM
Solution
http://forum.bennugd.org/index.php?topic=4148.75 (http://forum.bennugd.org/index.php?topic=4148.75)
Thank you, but the problem here seems to come from mikmod library. The openal library is already imported in the Android PixTudio project.


[size=16px !important]Hello , you're right , it was seemed like a mistake to me happened to me, and hurriedly ran one from Mobile , para ยท try to help xD[/size]
Title: Re:BennuGD very slow on LG G4
Post by: josebita on February 29, 2016, 03:18:34 PM
Have you compiled the C code with ndk-build?
Title: Re:BennuGD very slow on LG G4
Post by: josebita on February 29, 2016, 03:21:28 PM
Also, although it will probably reveal nothing, could you please provide a logcat of your program's execution in the LG G4 phone?
Title: Re:BennuGD very slow on LG G4
Post by: Grew on April 20, 2016, 08:11:29 AM

I've succeeded to build and run my game on Android. But on most devices, the PixTudio version is slower than BennuGD version (tried on Redmi Note 3 and Nexus 5, 60fps with BennuGD, 40 with PixTudio).
I will make two APK to help to find the problem.
Title: Re:BennuGD very slow on LG G4
Post by: josebita on April 20, 2016, 09:18:14 AM
Quote from: Grew on April 20, 2016, 08:11:29 AM

I've succeeded to build and run my game on Android. But on most devices, the PixTudio version is slower than BennuGD version (tried on Redmi Note 3 and Nexus 5, 60fps with BennuGD, 40 with PixTudio).
I will make two APK to help to find the problem.
That might be the case if you're rendering to a graph (scroll_on_map and similar techniques). Is that the case?
Title: Re:BennuGD very slow on LG G4
Post by: SplinterGU on April 20, 2016, 12:00:18 PM
Quote from: Grew on April 20, 2016, 08:11:29 AM

I've succeeded to build and run my game on Android. But on most devices, the PixTudio version is slower than BennuGD version (tried on Redmi Note 3 and Nexus 5, 60fps with BennuGD, 40 with PixTudio).
I will make two APK to help to find the problem.

what is possible? :(

please, give us more info...
Title: Re:BennuGD very slow on LG G4
Post by: panreyes on April 20, 2016, 12:03:27 PM
Grew, please try this benchmark:
http://www.pixe.es/gputest.apk

How many FPS does it report?
Thanks!

Also, if anyone else wants to try it, tell us the results and your smartphone model :)
Title: Re:BennuGD very slow on LG G4
Post by: Grew on April 21, 2016, 08:27:16 AM
Quote from: SplinterGU on April 20, 2016, 12:00:18 PM
Quote from: Grew on April 20, 2016, 08:11:29 AM

I've succeeded to build and run my game on Android. But on most devices, the PixTudio version is slower than BennuGD version (tried on Redmi Note 3 and Nexus 5, 60fps with BennuGD, 40 with PixTudio).
I will make two APK to help to find the problem.

what is possible? :(

please, give us more info...


I've tried with the game I'm working on but I don't want to share it right now :/. I will make two APK, one with BennuGD and one with PixTudio with a homemade benchmark to target the problem as soon as I can.


Quote from: PiXeL on April 20, 2016, 12:03:27 PM
Grew, please try this benchmark:
http://www.pixe.es/gputest.apk (http://www.pixe.es/gputest.apk)

How many FPS does it report?
Thanks!

Also, if anyone else wants to try it, tell us the results and your smartphone model :)


The FPS vary from 106 to 143 on my Xiaomi Redmi Note 3 (Cyanogenmod 12.1 Android 5.1.1). I will try on Nexus 5 as soon as I can.

Title: Re:BennuGD very slow on LG G4
Post by: josebita on April 21, 2016, 11:10:10 AM
It's approximately 170fps in my Nexus 5 using Android 6.0.1
Title: Re:BennuGD very slow on LG G4
Post by: warrior_rockk on April 21, 2016, 11:42:47 AM
60-65 fps on Sony Xperia Z with Android 5.1
Title: Re:BennuGD very slow on LG G4
Post by: TimotyMartin on January 13, 2018, 09:28:31 AM
i am very impress for your idea