Load strait into vRam or alloc then copy?

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

Moderators: cheriff, TyRaNiD

Post Reply
Scienthsine
Posts: 6
Joined: Mon Mar 20, 2006 11:36 pm

Load strait into vRam or alloc then copy?

Post by Scienthsine »

I just wrote a really simple run length encoded image format, and I need to know what the best way to read them into the psp are. I could read them into vRam directly, but I'd be setting each pixel one at a time. Would that be slower than reading the entire thing into ram, then doing a copy into the vram?
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Read my post here. It provides you with some basic information about the possibilities.
If I had to just answer your question straight: It depends on what 'best' is in your case.
- If your loading is time critical, I'd most likely stick with loading to RAM then doing sceGuCopy to get it to VRAM.
- If your program is desperate on RAM, and the loading time isn't that important, I'd propably try loading directly to VRAM.
Post Reply