Search found 20 matches

by framerate
Thu Aug 24, 2006 6:11 am
Forum: PSP Development
Topic: Framerate
Replies: 13
Views: 4447

Ahh I see... so setting it to the data of the screen buffer is implied... I thought you had to tell it.

Thanks for clearing that up!
by framerate
Thu Aug 24, 2006 4:49 am
Forum: PSP Development
Topic: Framerate
Replies: 13
Views: 4447

So the big win was using 16BPP and making sure the surfaces all have the same format (doh!). Here is some code for those wondering what I mean: pScreenSurface = SDL_SetVideoMode( 480, 272, 16, SDL_SWSURFACE|SDL_DOUBLEBUF ); pImgSurface = SDL_LoadBMP( "InsertFilename.BMP...
by framerate
Wed Aug 23, 2006 12:54 pm
Forum: PSP Development
Topic: SDL Initialization / Issues
Replies: 5
Views: 2417

Not really sure on what flags to pass through, In AFKIM I'm passing 0. Based on the readme I don't think passing SDL_HWSURFACE will do anything Video - yes, single 32-bit ABGR framebuffer surface only; SDL will emulate other formats as necessary. No HW accel. No 3D. Looking at the sdl-psp source, i...
by framerate
Wed Aug 23, 2006 6:54 am
Forum: PSP Development
Topic: SDL Initialization / Issues
Replies: 5
Views: 2417

danzel wrote:Go to 16 bit color to get a big speed increase:

screen = SDL_SetVideoMode(480, 272, 16,SDL_SWSURFACE|SDL_NOFRAME);
It really makes that big of a difference, eh?. Also, you're recommending SWSURFACE over HWSURFACE and don't think DOUBLEBUF makes that big of a diff? Or just correcting my code? :)
by framerate
Tue Aug 22, 2006 11:03 pm
Forum: PSP Development
Topic: SDL Initialization / Issues
Replies: 5
Views: 2417

SDL Initialization / Issues

So I wrote my recent RPG engine on my Macbook pro using SDL (for faster compilation and testing) and began running it on the PSP last week. I'm noticing some definitely issues and lag when running on the handheld. - The first issue was my fading screen code was "flickering" when using doub...
by framerate
Wed Apr 19, 2006 6:47 am
Forum: PSP Development
Topic: Preparing Mac OS X for PSPSDK
Replies: 29
Views: 25494

Doesn't work on macbook pro. Looks like fink isn't up to par with intel yet, but I'll keep trying.
by framerate
Wed Mar 22, 2006 7:14 am
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

Sorry for the bump, but does anyone know FOR CERTAIN what value the PSP Shell uses to organize the homebrew folders?
by framerate
Wed Mar 08, 2006 4:45 am
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

I believe that you can't change the mod time of a folder by changing its contents, at least on the PSP. Well I did it by connecting it to my G5 and changing the last modified that way, and the file is STILL not at the top of my list. (Top is still the last one I dragged over...) A simple, kludgy wa...
by framerate
Tue Mar 07, 2006 8:09 am
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

I don't think utimes is actually implemented cause noone worked out how to use chstat to do it, maybe I will do it at some point in the future :) Of course if you want use sceIoChstat directly, I think you create a SceIoStat structures with the times in it, then call sceIoChstat(file, bitmask) wher...
by framerate
Tue Mar 07, 2006 5:43 am
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

hmm still no luck. Any suggestions? Something that can do what utimes() does perhaps?
by framerate
Sun Mar 05, 2006 3:31 pm
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

I keep thinking it has to be something simple... maybe a typo since I was coding the whole app in one sitting... My dev machine is in my office, so I can't work on it tonight... I'm hoping it's just something simple... I took a look at the psp headers and maybe utimes isn't set up for use on the PSP...
by framerate
Sun Mar 05, 2006 2:58 pm
Forum: PSP Development
Topic: Reading an ENTIRE file and feeding it into a buffer/string??
Replies: 8
Views: 3522

Re: Reading an ENTIRE file and feeding it into a buffer/stri

but I cant find a call that will read more than one line of the text, I have only gotten it to flash the entire text, but only 1 char by 1 char, at the position i set it at, does anyone think they can help? fread()? Or am I mis-understanding the problem? Yeah, I wasn't 100% on what his problem was ...
by framerate
Sun Mar 05, 2006 2:27 pm
Forum: PSP Development
Topic: Reading an ENTIRE file and feeding it into a buffer/string??
Replies: 8
Views: 3522

I might be wrong, but instead just doing something (after opening the file) like: char* line; Couldn't you just do a 2-d array.. something like char** line; or char* line[0]; // instead of using the dual pointers... that way you load each line (one by one) into a larger arry, and the...
by framerate
Sun Mar 05, 2006 1:28 pm
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

Or perhaps somebody has another way to edit the last modified date of a file using straight C? Something just the equivalent of "touch"ing the files... Here's the linux equiv.. doesn't seem to work on my PSP though unfortunately... struct timeval times[2]; int main(...
by framerate
Sun Mar 05, 2006 10:24 am
Forum: PSP Development
Topic: utimes() usage.. does it work?
Replies: 9
Views: 3101

utimes() usage.. does it work?

I was trying to use utimes() to set the last modified date on a file, does this command not work on the PSP? I see we have times.h in the SDK but I keep getting an undefined reference to utimes() even though I'm including the proper headers... Does anyone else have any advice on using utimes() for t...
by framerate
Fri Feb 17, 2006 10:40 am
Forum: PSP Development
Topic: Using libpng.. max file size?
Replies: 1
Views: 1006

Using libpng.. max file size?

I tried loading in an image at about 1MB for testing and crashed the PSP.

Is there just a limit on file sizes someplace in libpng? Or would this be an individual limitation within my graphics engine?

Thanks in advance!
by framerate
Fri Feb 17, 2006 5:11 am
Forum: PSP Development
Topic: Which IDE to use for developing for the PSP
Replies: 8
Views: 3472

I use emacs on my linux machine and XCode on my mac

and like everyone else.. make kxploit ;)
by framerate
Thu Nov 17, 2005 1:33 pm
Forum: PSP Development
Topic: need help
Replies: 4
Views: 1639

Re: need help

pspwill wrote:i ran the toolchain but i had an error at the nd and now when i type make it saysImage
In linux it would probably be "source ~/.bash_profile
by framerate
Fri Aug 19, 2005 2:52 pm
Forum: PSP Development
Topic: Image Flickering using double buffer(very annoying).
Replies: 9
Views: 3489

Could someone point me in a good direction for setting up some simple double buffering using pg.c? If it's easier to write my own graphics library for double buffering, feel free to point me that way too.. email is framerate AT gmail.com. My project is coming along nicely, so you know I'm not just a...
by framerate
Sun Aug 14, 2005 2:32 am
Forum: PSP Development
Topic: simple button question..
Replies: 4
Views: 2126

What is the scrn() command? I haven't seen that yet. Also, as to your question, I learned from reading the docs, asking questions like this, and most importantly, reading other people's code. I've been uploading my code as I work, so if you want to check it out: www.framerate.info/psp/test.zip - sim...