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.
Search found 19 matches
- Tue Jun 03, 2008 5:44 pm
- Forum: PSP Development
- Topic: Optimizing a copy funct
- Replies: 2
- Views: 1320
- Thu May 29, 2008 6:35 am
- Forum: PSP Development
- Topic: PSP makes faults while rounding?!?
- Replies: 3
- Views: 1841
C/C++ integer division doesn't round. It truncates.
So it becomes essentially
Assuming temp is an integer.
So it becomes essentially
Code: Select all
temp2 = ceil((0));
printf("%d | %d", temp2, temp);
- Wed May 28, 2008 4:15 pm
- Forum: PSP Development
- Topic: psplinkusb CPU usage
- Replies: 0
- Views: 806
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
Ubuntu 64-bit here.
Thanks
- Wed May 28, 2008 3:41 pm
- Forum: PSP Development
- Topic: SIMD?
- Replies: 4
- Views: 1614
- Wed May 28, 2008 2:01 pm
- Forum: PSP Development
- Topic: SIMD?
- Replies: 4
- Views: 1614
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
Do I need to set any compiler flags to take advantage of them?
Thanks
- Wed May 28, 2008 10:28 am
- Forum: PSP Development
- Topic: PSP avi player
- Replies: 3
- Views: 1620
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...
- Mon May 26, 2008 9:42 am
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Sun May 25, 2008 5:23 am
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Sat May 24, 2008 3:41 pm
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Sat May 24, 2008 9:20 am
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Sat May 24, 2008 6:29 am
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Sat May 24, 2008 3:43 am
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
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...
- Fri May 23, 2008 6:25 pm
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Fri May 23, 2008 6:19 pm
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Fri May 23, 2008 5:38 pm
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
- Fri May 23, 2008 5:29 pm
- Forum: PSP Development
- Topic: psplinkusb access other files
- Replies: 19
- Views: 5590
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...
- Wed May 21, 2008 3:11 pm
- Forum: PSP Development
- Topic: SDL vsync?
- Replies: 2
- Views: 3824
- Wed May 21, 2008 2:59 pm
- Forum: PSP Development
- Topic: SDL vsync?
- Replies: 2
- Views: 3824
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[3]; colors[0] = SDL_MapRGB(screen->format, 0xFF, 0, 0); colors&a...
- Mon May 19, 2008 3:41 pm
- Forum: PSP Development
- Topic: Any luck with Firmware 3.95?
- Replies: 4
- Views: 2617
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...