forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do you use the SPR for DoubleBuffering?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
blueshogun96



Joined: 09 Jun 2005
Posts: 19

PostPosted: Tue Oct 18, 2005 12:34 pm    Post subject: How do you use the SPR for DoubleBuffering? Reply with quote

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.
Back to top
View user's profile Send private message AIM Address MSN Messenger
b0rje



Joined: 12 May 2005
Posts: 7

PostPosted: Sat Oct 22, 2005 3:15 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
blueshogun96



Joined: 09 Jun 2005
Posts: 19

PostPosted: Thu Nov 03, 2005 1:12 pm    Post subject: Reply with quote

hmm, that makes sense, thanks
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group