Author Topic: Alpha Testing Underway!  (Read 341130 times)

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #135 on: November 13, 2011, 07:15:44 AM »
To be honest, I had only tested this with gles2n64, since gles2rice is not really complete yet.  I just tested it with gles2rice, and my phone has a similar behavior, where it just continues running after I press home, and key input gets locked out on resume.  It doesn't seem to be a problem with "Save" and "Load" functions, though, because they work fine on my phone.  Since it seems to have more problems when using gles2rice, I'll start by getting it working on my phone when using that plug-in.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Mats

  • int
  • **
  • Posts: 65
    • View Profile
Re: Alpha Testing Underway!
« Reply #136 on: November 13, 2011, 11:41:36 AM »
the test works not whats the problem ?

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #137 on: November 13, 2011, 12:01:09 PM »
whats the problem ?
The problem is that I'm spending too much time starting up and/or shutting down on the main UI thread which Android refuses to accept.  I'd guess the reason it affects gles2rice more is that it's more CPU intensive than gles2n64 so it's delaying the UI thread even more.  I think the solution is to move most of the work to another thread.  I'm working on this idea now.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Mats

  • int
  • **
  • Posts: 65
    • View Profile
Re: Alpha Testing Underway!
« Reply #138 on: November 13, 2011, 02:27:45 PM »
whats the problem ?
The problem is that I'm spending too much time starting up and/or shutting down on the main UI thread which Android refuses to accept.  I'd guess the reason it affects gles2rice more is that it's more CPU intensive than gles2n64 so it's delaying the UI thread even more.  I think the solution is to move most of the work to another thread.  I'm working on this idea now.
did you got it work ???

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #139 on: November 13, 2011, 03:55:21 PM »
nope
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #140 on: November 13, 2011, 05:07:46 PM »
Ok, got it working for both video plug-ins.  The whole separate thread idea ended up being way more complicated than I expected due to some things that have to be done on the main UI thread, and synchronizing stuff... fingers crossed that it works on other devices not just my Droid X :o

Resume App Test #2

As before, provide the logcat output after doing the following test:
1) Run the app and let it load for a bit
2) Press the "Home" button
3) Relaunch from the status-bar
4) Press the "Menu" button and choose "Close"

Be sure to try it for both video plug-ins, and let me know how they behave.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: Alpha Testing Underway!
« Reply #141 on: November 13, 2011, 05:20:52 PM »
xperia play is same as last time  >:(
also i found this:
E/front-end(17735): AttatchCoreLib unsuccessful, returning 2.
« Last Edit: November 13, 2011, 05:24:24 PM by xperia64 »

Offline Epic_bubble

  • long
  • ***
  • Posts: 235
    • View Profile
Re: Alpha Testing Underway!
« Reply #142 on: November 13, 2011, 05:36:21 PM »
Every time I try to resume the app via the status bar  it goes back to the emulator but it only shows the controls on a black screen for a second and then kicks me back to the home screen. Its not force closing but it wont allow me to play the game anymore until I shut down the emulator.

Heres the logcat for the default plugin, I have not tried rice yet: http://dl.dropbox.com/u/13594612/paulscode/logcat/alogcat.2011-11-13-23-50-05%2B0000.txt
« Last Edit: November 13, 2011, 05:48:57 PM by Epic_bubble »
Device: Xperia play
CPU: Qualcomm 1 GHz Scorpion (Snapdragon)
GPU: Adreno 205
RAM: 512 MB
Screen res: 854 ? 480
ROM: stock android 2.3.4 rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #143 on: November 13, 2011, 06:04:16 PM »
From the logcat, it looks like it is taking a while to shut down, and you are resuming before the shutdown thread has ended.  To test this theory, please repeat the test again and post the logcat, but this time wait about 20 seconds after loading the app before you press home, and then wait 20 seconds before resuming the app from the status-bar icon, then wait 20 seconds before pressing "Close".  If that's the problem, I'll have to add in some more logic for cases where the resume sequence begins before the shutdown sequence has completed.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Epic_bubble

  • long
  • ***
  • Posts: 235
    • View Profile
Re: Alpha Testing Underway!
« Reply #144 on: November 13, 2011, 06:17:32 PM »
From the logcat, it looks like it is taking a while to shut down, and you are resuming before the shutdown thread has ended.  To test this theory, please repeat the test again and post the logcat, but this time wait about 20 seconds after loading the app before you press home, and then wait 20 seconds before resuming the app from the status-bar icon, then wait 20 seconds before pressing "Close".  If that's the problem, I'll have to add in some more logic for cases where the resume sequence begins before the shutdown sequence has completed.

It works!

Heres the logcat: http://dl.dropbox.com/u/13594612/paulscode/logcat/alogcat.2011-11-14-00-19-17%2B0000.txt
Device: Xperia play
CPU: Qualcomm 1 GHz Scorpion (Snapdragon)
GPU: Adreno 205
RAM: 512 MB
Screen res: 854 ? 480
ROM: stock android 2.3.4 rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #145 on: November 13, 2011, 06:20:09 PM »
Thanks..  I'll post a fixed version in a few minutes (I'll have to think about the best way to communicate between the shut-down and start-up threads without creating a potential for deadlock).
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Epic_bubble

  • long
  • ***
  • Posts: 235
    • View Profile
Re: Alpha Testing Underway!
« Reply #146 on: November 13, 2011, 06:21:22 PM »
Thanks..  I'll post a fixed version in a few minutes (I'll have to think about the best way to communicate between the shut-down and start-up threads without creating a potential for deadlock).

No probs and good luck with that. :)
Device: Xperia play
CPU: Qualcomm 1 GHz Scorpion (Snapdragon)
GPU: Adreno 205
RAM: 512 MB
Screen res: 854 ? 480
ROM: stock android 2.3.4 rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Alpha Testing Underway!
« Reply #147 on: November 13, 2011, 07:00:57 PM »
Turns out I can't communicate with the shutdown thread on resuming, because I loose the handle to it (all static variables are reset on resume).  I thought of another possible solution.  This way will close soon after opening if you exit then quickly resume, but it should be ok if you wait about 2 seconds (if it takes much longer for some of you than a reasonable time a user would be expected to normally wait, let me know and I'll try and think of something else)

Resume App Test #3
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Epic_bubble

  • long
  • ***
  • Posts: 235
    • View Profile
Re: Alpha Testing Underway!
« Reply #148 on: November 13, 2011, 07:06:54 PM »
Turns out I can't communicate with the shutdown thread on resuming, because I loose the handle to it (all static variables are reset on resume).  I thought of another possible solution.  This way will close soon after opening if you exit then quickly resume, but it should be ok if you wait about 2 seconds (if it takes much longer for some of you than a reasonable time a user would be expected to normally wait, let me know and I'll try and think of something else)

Resume App Test #3

Seems to work fine for me, takes a few seconds for the game to start back up but still it works. :)

Device: Xperia play
CPU: Qualcomm 1 GHz Scorpion (Snapdragon)
GPU: Adreno 205
RAM: 512 MB
Screen res: 854 ? 480
ROM: stock android 2.3.4 rooted

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: Alpha Testing Underway!
« Reply #149 on: November 13, 2011, 07:08:31 PM »
Cant tell if its the savestate or if its actually resuming. Logcat attatched