Search found 19 matches

by cyberfish
Tue Jun 03, 2008 5:44 pm
Forum: PSP Development
Topic: Optimizing a copy funct
Replies: 2
Views: 1343

I don't think it would really be dependent on the file size.

Try several buffer sizes and benchmark them =).

*edit*
BTW, why is everything named temp?... The function has its own scope that is isolated from the global namespace, so you don't need to try to protect the global namespace.
by cyberfish
Thu May 29, 2008 6:35 am
Forum: PSP Development
Topic: PSP makes faults while rounding?!?
Replies: 3
Views: 1863

C/C++ integer division doesn't round. It truncates.

So it becomes essentially

Code: Select all

temp2 = ceil((0));
printf("%d | %d", temp2, temp);
Assuming temp is an integer.
by cyberfish
Wed May 28, 2008 4:15 pm
Forum: PSP Development
Topic: psplinkusb CPU usage
Replies: 0
Views: 817

psplinkusb CPU usage

I just noticed that usbhostfs_pc seems to be using 100% of my CPU (1 core of a dual core CPU), idling, since a fresh startup. Is there any way around that?

Ubuntu 64-bit here.

Thanks
by cyberfish
Wed May 28, 2008 3:41 pm
Forum: PSP Development
Topic: SIMD?
Replies: 4
Views: 1650

Ah, I see. Thanks

I guess that means no SIMD for me if I don't want to go into ASM.
by cyberfish
Wed May 28, 2008 2:01 pm
Forum: PSP Development
Topic: SIMD?
Replies: 4
Views: 1650

SIMD?

Out of sheer curiosity, is there SIMD on the PSP? (for example, using gcc intrinsics)

Do I need to set any compiler flags to take advantage of them?

Thanks
by cyberfish
Wed May 28, 2008 10:28 am
Forum: PSP Development
Topic: PSP avi player
Replies: 3
Views: 1645

I believe the official firmware includes a mp4 player. AVI I'm not so sure. From what I recall, you need to encode your video specifically for the psp (dimensions and such), so I imagine it would be too heavy to do (resizing every frame) on the fly on the PSP. Either that or Sony is too lazy. I migh...
by cyberfish
Mon May 26, 2008 9:42 am
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

updating the toolchain to svn fixed everything =). Thanks for the help.
by cyberfish
Sun May 25, 2008 5:23 am
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

sceIoWrite(1, "Hello\n", 6);
Thanks. That worked.

Any way I can get stdout/stderr to work?

My tool chain is dated 20070626. Should I update it to svn?
by cyberfish
Sat May 24, 2008 3:41 pm
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

Still no luck printing to pspsh. I have simplified my code down to this #include <pspkernel.h> #include <pspdisplay.h> #include <cstdio> /* Exit callback */ int exit_callback&#40;int arg1, int arg2, void *common&#41; &#123; sceKernelExitGame&#40;&#41;; return 0; &#125; /* Cal...
by cyberfish
Sat May 24, 2008 9:20 am
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

I don't get your problem. The images don't load. Have did any debug? Like: if (!image) printf("ERROR LOADING IMAGE"); I have tried doing that using iostream. It didn't print anything to pspsh (even if I make it my first line in main). I will try printf later when I get access to my dev ma...
by cyberfish
Sat May 24, 2008 6:29 am
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

endl is equivalent to "\n" and flush.
by cyberfish
Sat May 24, 2008 3:43 am
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

Thanks for the replies. The host is 64-bit x86 Linux. I am assuming everything is case sensitive (everything is in lower case everywhere). If this isn't your issue then make sure you are using relative paths from your location. As long as you are using an normal 'main' function then it will have set...
by cyberfish
Fri May 23, 2008 6:25 pm
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

I cannot get the error message. Is it possible for a PRX to print to pspsh?

Thanks
by cyberfish
Fri May 23, 2008 6:19 pm
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

The EBOOT.PBP version works fine. I have the images in the same directory. I am just not sure how to do that with the PRX version (as it is launched in pspsh).
by cyberfish
Fri May 23, 2008 5:38 pm
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

Thanks for the reply.
The program compiles and runs fine, just that it needs an external file which it can't find.
by cyberfish
Fri May 23, 2008 5:29 pm
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 5660

psplinkusb access other files

I have a SDL program that loads external bmp files. It works well when I compile it as EBOOT.PBP and transfer it to the PSP and run it the normal way. I then compiled it as prx and tried to run it with psplinkusb. The program starts, but it can't seem to find the bmp. What should I do to fix that? M...
by cyberfish
Wed May 21, 2008 3:11 pm
Forum: PSP Development
Topic: SDL vsync?
Replies: 2
Views: 3848

thanks! that fixed it.

Now I see a beautiful flashing white (which is what I expected).
by cyberfish
Wed May 21, 2008 2:59 pm
Forum: PSP Development
Topic: SDL vsync?
Replies: 2
Views: 3848

SDL vsync?

Hi, I have just started experimenting with SDL on the PSP a bit, and I can't seem to get rid of the tearing if the frame rate is high. For example, with something like this: Uint32 colors&#91;3&#93;; colors&#91;0&#93; = SDL_MapRGB&#40;screen->format, 0xFF, 0, 0&#41;; colors&a...
by cyberfish
Mon May 19, 2008 3:41 pm
Forum: PSP Development
Topic: Any luck with Firmware 3.95?
Replies: 4
Views: 2662

I just downgraded mine from 3.95 yesterday. AFAIK there is no way except the pandora battery that you can make either 1) using another PSP that can already run homebrew, or 2) pry open the battery and cut a pin. Either way, you need to waste a battery (by converting it to pandora). I did the hardmod...