Archived

This topic is now archived and is closed to further replies.

Beelzebub

AGB - is its memory really this slow?

Recommended Posts

Trying to write some software render routines and I''m find that work RAM is _really_ slow - some quick tests it appears that memset''ing a 20Kbyte buffer takes a __long__ time. filling 20K using byte pointers takes 8 frames, halfwords 4 frames and 32-bit words still takes 2 frames, surely I''m doing something wrong...? Anybody else had simuliar problems?

Share this post


Link to post
Share on other sites
I don''t know what you''re doing since I can''t see your code, but yes, using any mode that just hands you the screen buffer is going to be slow since the CPU really isn''t fast enough to do that sort of thing. Use one of the modes that accelerates tiles and sprites.

------------
- outRider -

Share this post


Link to post
Share on other sites
outrider:is it possible to use the dma mem transfer with ddraw hi res modes? Currently I''m using MMX stuff to do sysmem->vidmem cpy which takes about 1/90 of a sec on my duron 600 (in 640x480x32bpp mode), the same while doing a sysmem->sysmem copy takes 1/120 of a sec.
Ps. it''s interesting to note, that my bro celeron 400mhz with 66mhz bus takes longer for a sysmem->sysmem copy then a sysmem->vidmem copy (the numbers are 1/52 and 1/57 of a sec if I remember right, for the same mode as my duron, both computers are equipped with an agp2x tnt card)

With best regards,
Mirek Czerwiñski
http://kris.top.pl/~kherin/

Share this post


Link to post
Share on other sites
The speed of the bus really affects sysram->sysram blits, more so than sysram->vram. Anyhow, I have no idea how to get access to the DMA on a PC, I''m too used to getting everything handed to me when PC programming, so this GBA stuff is kind of my learning experience.

Share this post


Link to post
Share on other sites