PocketMatrix forums

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

Anyone with a solution to "laggy" axim x5?

I recently inherited an old axim x5 and was very glad to get a new pda with a good screen and a fast xscale processor. I began with coding some simple effects like rotozoomers and noticed how it, while running, locks up for a small moment randomly (using gapi). I've researched and found out about the slow ram->vram bus, but never heard of this problem? I downloaded some demoscene demos which ran fluently, but gxmark had the same problem.. Has it got something to do with gapi's implementation of buffer->vidmem blit or is it something in wm2003se that slows it down? I would be really thankful if someone had a solution or else I have to return to my old pal (3630).
If it's running PPC 2002, it's especially slow. The 2003 update helps a teeny bit. But the absolute best way to improve the performance is to use PocketHAL in your program, which has the fastest MediaQ performance. You're right, the bottleneck lies between the RAM and MediaQ video chip memory.

You can check out some PocketHAL info at http://www.droneship.com
For how long does it 'lock up' and how often? It could be that the OS is doing a 'task' like managing memory or communicating over the network. Do you have a network card in the PCMCIA slot? I have one and my Dell will slow down every once in a while as it does something over the network... I can see the light flash on the adpater and the hub. If some programs don't exhibit the problem, then it could well be memory.
Yup I have upgraded to windows mobile 2003 se, but haven´t tried pocketHAL, should give it a shot. No I haven´t got any wlan card (or haven´t got it to work at least, some cf-card bought in japan, and the support aren´t really... In my language;)

Well the lockups come very frequently and they really seem like being some thread in the background taking over everything. I've tried to slow down the render-loop but it is still there. Thanks anyway for your help!
Are there any today screen plug-ins running? Could be that.
I might have been confused a little. Do you mean it "locks up" for a second or more, or does it "stutter" for a tenth of a second or so? I haven't run into it locking up, so I'm not sure if PHAL will help that. Also, it should only be 2003, not 2003SE. Dell never released a 2003SE upgrade for the X5s, AFAIK. The SE version allows you to switch the OS to landscape mode, so if you're running that somehow, it could be the cause of the problem.
It is the A05 upgrade. The lockups lasts for like 100ms-500ms once in a 1-10th second. No I haven´t got any todays plugins now, it's just a clean install (I think?, I did a manual flash of the rom few days ago, that erased the rom and reinstalled the a05 patch). The strange thing is that this demo worked flawlessy: http://www.pouet.net/prod.php?which=10878.
It's only due to the limited bandwitdh of the MediaQ graphic "accelerator".

If your don't try to display at a frame rate higher than the MediaQ limit (about 20FPS) then you won't notice the problem.
Okay thanks :) A shame though, pretty good pda otherwise. But well I guess I can live with it, if I lock the framerate at 20 fps I have a lot of power for other stuff! :)
You don't have to lock the framerate at 20FPS.

At int13 we are using a dynamic frameskip system, on fast devices the framerate is in sync with the VBL (60FPS), on other devices we simply skip some frames (but the game logic and input system is always running at 60FPS).

60 FPS is the console (and demomaking) standard for smooth animations....
Hmm it seems to be something else... I tried this which updates the screen at 10 fps.


if(scrTimer.getTime()>100)
{
render();
scrTimer.resetTimer();
update(UPDATE_TIME|UPDATE_SCREEN|UPDATE_INPUT);
}
else update(UPDATE_TIME|UPDATE_INPUT);
Oh boy.... Got it to work. Reason: bad backup battery :) Sorry to bother you. I guess I should have tried that earlier, but I didn´t think that would affect it.. Btw is it okay coding c++ on these little sweeties? I mean what is the overhead instead of coding in c?
There is no overhead in using C++ over C. Don't believe the FUD.

C++ can generate more instructions per statement. If you know what you are doing, that is a good thing. But these same statements have sementics that do not exist in C.
Don't use the minute speed difference as a deider between C and C++.

Use the language that is best for the job and look at optimizing the time critical code when you are far enough into the project to have a good fell for the bottlenecks.

Also bear in mind that C++ is a superset of C and so valid C code is also valid C++ code.

Anyway, any speed advantage that C gives you will be completely negated by that dodgy MediaQ card anyway!!!
true :) Started coding c++. Seems to work just fine, the time critical code will be asm anyways .. Thanks for your replies!