PocketMatrix forums

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

Toshiba e310 performance problem

I've got e310 for testing today.

Unfortunately all of my PF projects have 200-300% slowdown on it.

I've searched this forum and found this thread. It's about e740 problem. But there was doubts about X-Scale.

Does anybody tested any PF projects on e310? Was there some problems?
You experience a slowdown of 200-300% relative to what? What kind of operations do you perform with PocketFrog? Any idea which ones are slowing you down that much? (Blits? Lines?)

Is the e310 an XSCALE device? If so, that would explain it...
Kzinti wrote:
You experience a slowdown of 200-300% relative to what?

It's relative to other StrongArm devices.

Kzinti wrote:What kind of operations do you perform with PocketFrog?

Blits.

Kzinti wrote:Any idea which ones are slowing you down that much? (Blits? Lines?)

As i said, i'm using only the blits.
Even if i'm blitting only 3x3 pixels per frame, i have same slowdowns.
It seems that memory accesses on the e310 are much slower then on the iPAQ 38xx and that could explain the "slowdown".

See:
http://forums.pocketmatrix.com/viewtopic.php?t=7487

I would be interested to know if such slowdowns are noticable with other games using GAPI.
Other GAPI games works fine. I didn't notice any slowdowns...
This e310 issue bugs me.

Could you provide me with the GAPI properties of the e310? What about GXIsBufferDRAM()? Does it returns TRUE or FALSE?

Thanks for your help!
I've made screenshot with these properties:
http://z-nova.natm.ru/gapi_props.gif
Looks like a really simple layout to me. The only thing I can see at this point would be that GXBeginDraw() / GXEndDraw() are taking an anormal amount of time.

Perhaps you could modify the GAPILibrary class to
1) Call GXBeginDraw() only once at init time and cache the pointer
2) Remove call the GXBeginDraw() in BeginScene() and return the cached pointer instead
3) Remove call to GXEndDraw() in EndScene()

If you are able to test this, it would be helpful.

Thanks!
I'll try it.

But it will take time to analyse the code. It's slightly difficult. 8)
Modify BeginScene() so it looks like this:

Code:




Pixel* GAPILibrary::BeginScene()
{
Pixel* pVideo;

if (m_GAPIBypass)
pVideo = m_GAPIBypass;
else
{
pVideo = (Pixel*) GXBeginDraw();
m_GAPIBypass = pVideo;
}

pVideo = (Pixel*)((char*)pVideo + m_GAPIOffset);

return pVideo;
}


This should be enough to test it.
I've already done it, but guy who owning toshiba gone with device.
I'll try it tomorrow.
I've tried it - no effect. 8(
Unfortunately I am out of ideas. I also had this problem reported by someone else.

It's entirely possible that the e310 is really slow and that we don't see it in some games because their logic is not tied to the frame rate.

Without access to an actual device I can't do much to track the problem, if there is indeed one.
If you'll have some ideas later mail them to mr.prayer@newmail.ru.
I'll try to test them.

Thanks...
I have a couple of benchmarks.

Download GapiDraw (www.gapidraw.com). Copy the contents from the following folders to the PDA:

samples\MFC\WinCE\ARMRel\
samples\Simple\WinCE\ARMRel

[MFC Sample]
This sample tests a combination of small blits and non-sequential memory reads. This will grind to a halt on XScale processors.

Performance on an IPAQ 3630:
Landscape: 175 sprites
Portrait: 130 sprites

Performance on an Toshiba E740:
Landscape: 50 sprites
Portrait: 100 sprites

[Simple]
This demo copies and rotates a large bitmap to the display. The copy is done in a cache-optimized way.

Performance on an IPAQ 3630:
Landscape: 23 ms / frame
Portrait: 23 ms / frame

Performance on an Toshiba E740:
Landscape: 30 ms / frame
Portrait: 30 ms / frame

Try these on the 310 and post the results...

/Johan
[MFC Sample]
Landscape: 50 sprites
Portrait: 70 sprites

[Simple]
Landscape: 40 ms / frame
Portrait: 40 ms / frame
Wow! This has to be the worst performing PDA ever.. 8O

I wonder how they test their new PDAs.. "Ok, we can start it up and the calendar works.. Lets sell it and make some money"

My guess with the 310 is that the memory bus is slow, resulting in a serious impact on all applications (and not only memory reads as is the case with the 740). This could probably be evaluated in more detail, but with performance like this it's of little use.

It seems like the 310 Pocket PC is simply not a device suitable for games.
I've tried Pocket Rayman on e310.
It works quite fine.
That's basically not the point.

Sure, you can pick many games that work fine on the 310. Games like Rayman with an effective screen area of 240x240 with a limited number of on-screen sprites will work very well. I bet that the Solitaire game works equally as well.

You WILL however experience issues with more demanding games. As you saw in the MFC sample, you can run up to 70 sprites without a problem. It's not too common for a game to have 70 sprites on screen at the same time. But once a game is designed for 100 sprites (or multilayered tiled backgrounds etc) it may not work properly on your PDA.

Usually game developers design their game for the slowest PDA on the market. If MIPS is to be supported, the game is designed to work on MIPS PDAs. This means that faster PDAs only take advantage of a fraction of their potential.
But i have problems even with 2 sprites drawing on e310.
Its very slow. 2 times slower than on iPAQ.
Thanks for the help Johan.

If both our libraries have this problem, then it seems pretty convincing to me that the memory bandwidth to the display is severely limited on the e310.

The reason you don't see it in a game such as Rayman can easily be explained: most game use a fixed number of updates per seconds for the logic. So if the game updates 10 times/sec and it uses 20 frames/sec for rendering (interpolation between frames), you won't notice any slow down.
According to the review posted in the General Dev forums the e310 has REALLY slow memory move ops. It's entirely possible that this is the reason for the slowdown. It was the only benchmark I noticed that really seemed inordinately slower (roughly 40% slower) on the 310 compared to iPAQs and other devices.