love-android-sdl2 (native, 0.9.2)

A project to port LÖVE to Android handhelds
Locked
User avatar
slime
Solid Snayke
Posts: 2918
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by slime » Fri Jul 04, 2014 6:23 pm

jjmafiae wrote:I do use garbagecollect and I have optimized it alot, but if I go into the application manger on my phone it fixes lag(untill next time I do something CPU intensive) and yes I am using 0.9.1a
What kind of CPU-intensive thing are you doing? Can you make a simple .love that reproduces the issue?

jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: love-android-sdl2 (native, 0.9.0)

Post by jjmafiae » Fri Jul 04, 2014 8:42 pm

well it's CPU intensive compared to the other elements of the game, it's a level randomizer that have alot of code and sadly I can't reshare the .love/code because it's a commercial project, but it doesn't get frame drops on my PC only on my android phone (and as I said it gets fixed when going into the app manger for a while)

Joemag
Prole
Posts: 24
Joined: Sun Apr 14, 2013 5:42 pm

Re: love-android-sdl2 (native, 0.9.0)

Post by Joemag » Sat Jul 05, 2014 9:29 am

Maybe related: I have vsync turned off and the game runs with over 200fps. But when I go to the app manager and back again it only runs with 60fps.

jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: love-android-sdl2 (native, 0.9.0)

Post by jjmafiae » Sat Jul 05, 2014 10:59 am

weird, it's the exact opposite for me ? :3

Sind
Prole
Posts: 10
Joined: Mon Mar 31, 2014 4:40 pm

Re: love-android-sdl2 (native, 0.9.0)

Post by Sind » Fri Jul 11, 2014 6:50 pm

I haven't been using love-android-sdl2 in a long while, and I just decided too continue working on my game a few moments ago.
So I updated to the latest version(using git pull), and after running ndk-build, compiled and deployed my game to my S3 android 4.3 phone, where running the program gives an "Unfortunately, [program name] has stopped" error.

I do have an outdated version on my phone that uses beta2, and that one works just fine =/

Am I missing something obvious here, or what?

Joemag
Prole
Posts: 24
Joined: Sun Apr 14, 2013 5:42 pm

Re: love-android-sdl2 (native, 0.9.0)

Post by Joemag » Fri Jul 11, 2014 7:57 pm

Sind wrote:running the program gives an "Unfortunately, [program name] has stopped" error
Is you app signed? If yes, then this is the problem:

https://bitbucket.org/MartinFelis/love- ... h-on-start

It was fixed but now it is there again. The same fix works.

Just change the line 30 in jni/SDL2-2.0.3/src/main/android/SDL_android_main.c from

Code: Select all

argv[0] = SDL_strdup("SDL_app");
to

Code: Select all

argv[0] = SDL_strdup("app_process");
and then recompile (delete the folders "libs" and "obj" and then run ndk-build)

Sind
Prole
Posts: 10
Joined: Mon Mar 31, 2014 4:40 pm

Re: love-android-sdl2 (native, 0.9.0)

Post by Sind » Fri Jul 11, 2014 8:43 pm

Joemag wrote:
Sind wrote:running the program gives an "Unfortunately, [program name] has stopped" error
Is you app signed? If yes, then this is the problem:

https://bitbucket.org/MartinFelis/love- ... h-on-start

It was fixed but now it is there again. The same fix works.

Just change the line 30 in jni/SDL2-2.0.3/src/main/android/SDL_android_main.c from

Code: Select all

argv[0] = SDL_strdup("SDL_app");
to

Code: Select all

argv[0] = SDL_strdup("app_process");
and then recompile (delete the folders "libs" and "obj" and then run ndk-build)
This seemed to be it. Thanks a lot ^-^

User avatar
Positive07
Party member
Posts: 1006
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: love-android-sdl2 (native, 0.9.0)

Post by Positive07 » Sat Jul 12, 2014 10:33 pm

Sind wrote:
Joemag wrote:-snip-
-snip-
It was already fixed in the last commit, Thanks for writing down the issue and also for the fix!

NOTE: It was also fixed in the SDL repository
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(Github.com/Positive07)

User avatar
Davidobot
Party member
Posts: 1196
Joined: Sat Mar 31, 2012 5:18 am
Location: Cambridge, UK
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by Davidobot » Mon Jul 14, 2014 9:08 am

Will lua-socket work on android?
My projects: Raycaster, love.js v11.3 port
itch page: link
My website: link
My library: LovelyMoon

User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: love-android-sdl2 (native, 0.9.0)

Post by miko » Mon Jul 14, 2014 1:16 pm

Davidobot wrote:Will lua-socket work on android?
Yes. Just look one page back in this thread.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples

Locked

Who is online

Users browsing this forum: No registered users and 8 guests