This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Using pBuffer of surface other than frame buffer


Using pBuffer of surface other than frame buffer

Postby cersoft » Dec 7, 2002 @ 9:56am

cersoft
pm Member
 
Posts: 5
Joined: Dec 7, 2002 @ 3:03am


Postby cersoft » Dec 7, 2002 @ 10:21am

cersoft
pm Member
 
Posts: 5
Joined: Dec 7, 2002 @ 3:03am


Postby cersoft » Dec 7, 2002 @ 11:10am

cersoft
pm Member
 
Posts: 5
Joined: Dec 7, 2002 @ 3:03am


Postby Hosed » Dec 7, 2002 @ 2:44pm

L. L. Goodwin<BR>Purveyor of Code<BR><A href="http://www.planettribes.com/hosed/">Hosed's House of Code</A>
User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Kzinti » Dec 7, 2002 @ 8:51pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby cersoft » Dec 8, 2002 @ 12:07am

But if the video ram is not cachable, why is it when video ram is accessed loop x, loop y it is about half the speed?

Ahh, but of course I am not writing to video ram, but the back buffer instead, hence the cache misses ?!?!

Colin
cersoft
pm Member
 
Posts: 5
Joined: Dec 7, 2002 @ 3:03am


Postby Digby » Dec 8, 2002 @ 1:47am

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby cersoft » Dec 8, 2002 @ 2:39am

Cheers for that info.

I have been doing some more tests concerning cache misses, my testbed uses the 'Simple' sample with the rotating ipaq removed, screen orientation is GDDISPMODE_ROTATE90CCW. My test data is an animating sprite sized 64x48 pixels with 14 frames.

I am drawing 200 sprites, each one cycling through the frames (sprite 0 = frame 0, sprite 1 = frame 1) so as to totally thrash the cache.

Using bltfast (ie. mfc sample) 59.4ms (iPaq 3970)
Using my own keycol blitter 59.1ms
Using keycol span skipper 51.3ms

Now this span skipper method just finds the portions of the sprites that are not keycol'd out (ie. not magenta), now what happens if we move all of the drawable span data into a single array of data with no gaps....

Using datacomp span skipper 45.1ms

Here we can see that by bunching all of the data into a single array we are not hitting the cache as badly and hence we get much better draw time.

Of course the problem is that we cannot bltfast this compressed data and it only works when drawing from the data row wise.

Still, quite an improvement. :P

Colin
cersoft
pm Member
 
Posts: 5
Joined: Dec 7, 2002 @ 3:03am


Postby Digby » Dec 8, 2002 @ 3:01am

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron