PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

smartphone performance

I've noticed that my latest (and only) smartphone release have some problems sometimes in my e200 (works perfectly on my mpx200)

the game plays fine, but from time to time, the game stops for a split second and afterwards continues, like some other process would be saturating the cpu until it returns.
It's slightly anoying for me, but it seems some users on spv c500 are suffering longer staggers than me, making it unplayable.

has anybody had similar problems?

TIA
Kak
I asked for further feedback, and this is the conclusion:

it seems like the program is running in the background, but the screen is not being updated. He managed to start a game and lose all lifes, but he hasn't seen anything since the first 10~15 seconds of program execution.

I think I'm not losing focus, as if I would, the sound should stop, and the game shouldn't continue playing (at least it does in e200 and mpx 200).

talking with another user, I've realized that it seems that pocket scummvm has the same problems on some C500 and SP3i devices:

http://mobile.modaco.com/viewtopic.php?t=118119
Kak, are you using PFrog or PHAL? And which rev?

There's several threads about window focus and whatnot. Maybe it's how you're starting your game (creating the window)?
fast_rx wrote:Kak, are you using PFrog or PHAL? And which rev?

There's several threads about window focus and whatnot. Maybe it's how you're starting your game (creating the window)?


Hi fast_rx,

I'm using pocketHAL 7.4 The last time I had problems with my framework, I decided to use pocketHAL's framework from the minimal application (in other words, the common/ directory) and I change it each time I change pocketHAL version.

I've fixed the problem on my e200, I've increased the thread priority and it runs smooth now. However I can't get incoming calls while playing ;) (gotta work a lot on the issue yet, it's just a first test)

I'm waiting for reports on the c500 device about this issue.


I'm a bit worried with some c500 though: it seems there's a bug which prevents quite a lot of games to work correctly, and mine is just one of them.
A few minutes ago I've found a list here:

http://www.modaco.com/viewtopic.php?t=112559&start=0

the thread is long and I have to fully read it before going into conclusions, so I'll post here later about it.

p.s. I found lejjo :( (it's in the second page)
it seems it was a priority problem!
just setting the priority of the thread to beyond normal has worked on a C500 (I'm waiting for the feedback of the other user)

well, they can't receive incoming calls with that priority, I'll have to work a little bit more in the issue :)
Do you know the resolution of that phone's display?
fast_rx wrote:Do you know the resolution of that phone's display?


standard resolution, 176x220, but it seems it was a priority issue. with a simple
Code:

SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);


at the start everything seems to run ok!
Kak, I PM'd the guy over at modaco that listed Lejjo as non-functional...

He said "lejjo has worked fine since the c500 update". I really wasn't aware that there had been some global fix after reading that post, but apparently there had been - I guess a ROM update.

I guess I won't have to release an update afterall.
fast_rx wrote:Kak, I PM'd the guy over at modaco that listed Lejjo as non-functional...

He said "lejjo has worked fine since the c500 update". I really wasn't aware that there had been some global fix after reading that post, but apparently there had been - I guess a ROM update.

I guess I won't have to release an update afterall.


yes, I think they released the device with something wrong and afterwards they released a new version with the fixes. I haven't found what went wrong though

Great to hear problems no longer persists with the new rom :)
it seems this affects sp3i phones, sda and c500.

As I said in a previous post, it seems that if I don't pull up the thread priority, the game lives for 15 seconds or so, and then it doesn't update the screen, however the game can be heard running in the background, and you can play (but you don't see what's happening).

Increasing thread priority fixes the problem, but with some side effects, i.e. you can't get incoming calls. which is a bit anoying. imho. :)

So I've tried to fix this putting an "sleep" after screen updates, so that I get the incoming calls, but then I'm stuck in the first problem I had, after 15 or 20 seconds, the screen freezes (despite I can play without seeing what I do)

I'm a bit lost, if I wouldn't have the focus, then the keypresses wouldn't be registered, would they?
But they are registered, as users can enter the game and play a game, and then exit (they see anything though).
Also, if getPixels or beginScene returned a bad value, I wouldn't be processing the keys and entering the game, as the pointer would be NULL and it'd inmediately exit (if not, then it'd crash)

Any hint will be appreciated :)
TIA
Kak
Kak: Can you try one of the GapiDraw samples of your phone to see if they work? Try the Plasma demo for example. You could simply copy the executable for ARM to the phone and it should work.

If the GapiDraw sample works fine (it also uses increased thread priority for performance boost) then the problem should be fixable with your application.
Johan wrote:Kak: Can you try one of the GapiDraw samples of your phone to see if they work? Try the Plasma demo for example. You could simply copy the executable for ARM to the phone and it should work.

If the GapiDraw sample works fine (it also uses increased thread priority for performance boost) then the problem should be fixable with your application.


Hi Johan,

unfortunately I don't have a problematic device, all the test is being done by volunteers at modaco.com
I'll include the plasma sample in the next package of tests I send them
Johan wrote:Kak: Can you try one of the GapiDraw samples of your phone to see if they work? Try the Plasma demo for example. You could simply copy the executable for ARM to the phone and it should work.

If the GapiDraw sample works fine (it also uses increased thread priority for performance boost) then the problem should be fixable with your application.


Hi Johan,

I just received the feedback, the plasma sample works perfectly :)

Plasma apart, I've logged all the events from a working version (without sleep) and non working version (with sleep) and they're exactly the same, which puzzles me even more :?

I'm having a look at plasma main loop right now to see if there's any big difference
I'm glad to hear that it worked. I hope it can help you resolve your issue quickly.
Johan wrote:I'm glad to hear that it worked. I hope it can help you resolve your issue quickly.


it seems the pocketHAL firework also has the same problem, however I'm not getting anything strange in the window message dump I did. Just keystrokes.

I suspect it's something related to the c500 flickering problems some time ago appeared, as the sp3i webpage states

" When playing a small sample of games, the screens flicker or freeze when
played using the current ROM code. This is also experienced by some
screensavers. Corrected in next build."

http://www.clubimate.com/index.asp?Page ... P3I_ISSUES