pspDebugScreenPrintf and scrolling

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
frodemed
Posts: 8
Joined: Fri Aug 05, 2005 10:40 pm

pspDebugScreenPrintf and scrolling

Post by frodemed »

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.
dbeyer3069
Posts: 81
Joined: Mon Dec 19, 2005 4:09 pm

scrolling

Post by dbeyer3069 »

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
frodemed
Posts: 8
Joined: Fri Aug 05, 2005 10:40 pm

scrolling

Post by frodemed »

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!
dbeyer3069
Posts: 81
Joined: Mon Dec 19, 2005 4:09 pm

..

Post by dbeyer3069 »

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
Post Reply