Jump to content
  • Advertisement

Archived

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

Beelzebub

AGB - is its memory really this slow?

This topic is 6032 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Or, use the DMA to move stuff around memory. It stalls the CPU, but it''s still faster than using the CPU to do it.

------------
- 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
ups... sorry, didn''t notice it''s the console/PDA forum *g*

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!