Page 1 of 1
How do you use the SPR for DoubleBuffering?
Posted: Tue Oct 18, 2005 12:34 pm
by blueshogun96
Hey everyone, I heard that it was possible to use the SPR (Scratch Pad Ram) to use double buffering in a ps2 app. I was wondering how to do this because I'd like to make a double buffer and keep it at 32-bits without using up all of my VRAM. Thanks.
Posted: Sat Oct 22, 2005 3:15 am
by b0rje
Hi,
this type of double buffering isnt related to the bouble buffering done by the GS. Double buffering using the SPR means that the CPU can write into the SPR during the fromSPR DMA channel copies data in the main mem without anybody waiting for the bus (is this possible because the SPR is this kind of dual port ram?). So start the fromSPR DMA channel from the first half of SPR mem and write your calculations in the second half of SPR mem. After calculations and transfer are done, swap the pointers to those mem areas and go on.
Posted: Thu Nov 03, 2005 1:12 pm
by blueshogun96
hmm, that makes sense, thanks