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 

pspDebugScreenPrintf and scrolling

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



Joined: 05 Aug 2005
Posts: 8

PostPosted: Fri Dec 23, 2005 8:32 am    Post subject: pspDebugScreenPrintf and scrolling Reply with quote

Is it possible (sure it is) to enable scrolling when using pspDebugScreenPrintf? I thought that it might be possible to move the content of VRAM "backwards" when the bottom of the screen is reached.

This might be a stupid and bad idea, but any feedback is appreciated.
Back to top
View user's profile Send private message
dbeyer3069



Joined: 19 Dec 2005
Posts: 81

PostPosted: Sat Dec 24, 2005 3:51 am    Post subject: scrolling Reply with quote

There may be a more elegant way to do this, but without other suggestions... this might be a simple quick solution:

1. create an array of strings [1-xx] -- xx = whatever number of lines on the screen
2. add your debug statements to the end of the array each time
3. when you reach xx entries, move all the entries up one and add the newest entry in the last position.
4. clear the debug screen and reprint it each time.

This isn't the best solution I'm sure but it's a real fast way to do it without using any graphics or screen address manipulation.

David Beyer
Back to top
View user's profile Send private message
frodemed



Joined: 05 Aug 2005
Posts: 8

PostPosted: Sat Dec 24, 2005 7:04 am    Post subject: scrolling Reply with quote

I actually thought about using an array and reprinting the whole array each time a scrolling is needed, but didn't think it was fast enough.
However, I will try it out now :) Thanks!
Back to top
View user's profile Send private message
dbeyer3069



Joined: 19 Dec 2005
Posts: 81

PostPosted: Sat Dec 24, 2005 12:36 pm    Post subject: .. Reply with quote

If it's just for debug purposes and it's not going to be seen by end-users, it doesn't have to be pretty, just functional.

David Beyer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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