Search found 26 matches

by ipsp
Wed Apr 12, 2006 1:21 pm
Forum: PSP Development
Topic: 3d graphic books recommendations
Replies: 11
Views: 4295

Hi Guys Thanks for the recommendation, I have borrowed a couple of books from some guys I work with that have just finished uni. Anyways I'm going to go down and try to get the redbook, since I can always write off the books for work anyways. I tried some of the online sites, and as good as they wer...
by ipsp
Mon Apr 10, 2006 10:24 am
Forum: PSP Development
Topic: 3d graphic books recommendations
Replies: 11
Views: 4295

3d graphic books recommendations

Hi Guys After reading through a couple of samples in the PSPSDK, and modifying the Cube example to be a pool table, I need to get a better understanding about 3d graphics, as i last study this about 8 years ago. Anyways since various people have done 3d graphics, I'm wondering if anybody can give me...
by ipsp
Fri Mar 31, 2006 9:26 am
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4586

Hi, What do you mean by "the surfaces were created in the constructor"? I am just curious, as I thought TTF_Reneder was the only wat to create TTF SDL_Surfaces. My system is using C++, hence I'm constructing the surfaces in the constructor of my 'PSP_WTK_Text' class, and I'm ignoring any ...
by ipsp
Thu Mar 30, 2006 9:35 am
Forum: PSP Development
Topic: Files in eboot for single file programs
Replies: 25
Views: 10114

Are you really sure you want to do this ???? There are various side-effects you should consider, biggest of those being that each resource you include will add to the amount of memory required to start up the application. For example say the executable is 250kb, and you include 2mb of images, the ex...
by ipsp
Thu Mar 30, 2006 9:26 am
Forum: PSP Development
Topic: JGE++: A hardware accelerated 2D game engine for PSP/Windows
Replies: 39
Views: 27787

Nice work. I've had a quick look whilst I was at work yesterday, and I must say the examples gave some insight into it abilities, hence making it standout for other libraries. I'll investigate this more once I finish my current project. Again nice work good to see more libararies added to the PSP co...
by ipsp
Thu Mar 30, 2006 9:22 am
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4586

In SDL, you use ttf_render to create your text string and it returns an SDL surface to you. Once you have that surrface, you can reuse it as many times as you want. There is no need to re-create that surface again and again each time you re-pait your screen. I think you may have been doing that, th...
by ipsp
Wed Mar 29, 2006 8:59 am
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4586

Hi Guys I checked and yes I was using 32 instead of 16, I changed this and well did not get the results I would have liked (night and day). But once I turned of the TTF handling, there was a dramatic improvement. I believe my TTF caching was not working as I expected it to, for some reason even thou...
by ipsp
Wed Mar 29, 2006 8:50 am
Forum: PSP Development
Topic: Partially Screen Flicker issue
Replies: 3
Views: 1847

Actually the problem occured as I was writing past the end of the first part of vram, and hence when the first vram buffer was being written (i.e second vram buffer displayed), the images would quite obviously bleed into the seocnd buffer and hence why it was flickering, only where i was overriding ...
by ipsp
Tue Mar 28, 2006 9:19 am
Forum: PSP Development
Topic: Partially Screen Flicker issue
Replies: 3
Views: 1847

Partially Screen Flicker issue

Hi Guys Wondering if anybody can give me some ideas into what is causing a screen flick problem. Basically I'm displaying an multiple images, then swapping the display buffer. Here is how the problem is created :- In the first display buffer I will display full screen image A, and in the second buff...
by ipsp
Tue Mar 28, 2006 9:03 am
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4586

Well I kept the SDL code around so i might go back to it. It is unlikely that the true type fonts were causing the problem, basically during initalisation all text was rendered to a surface, and those surfaces kept (cached) and simply blit'd to the screen later. Not sure if I was using 32 or 16 bit ...
by ipsp
Mon Mar 27, 2006 8:54 am
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4586

Ok I'll drop SDL then.

Now my only problem is how do I get true type font (TTF) support, as this was the only reason I was even using it in the first place.
by ipsp
Sun Mar 26, 2006 10:34 pm
Forum: PSP Development
Topic: SDL / SDL_Image / SDL_TTF Efficency Problems
Replies: 14
Views: 4586

SDL / SDL_Image / SDL_TTF Efficency Problems

Has anybody notived that the SDL library are extremely slow, for example when filling 6 rectangles, i'm geting like 4 frames per second. Trying to draw anything complex, makes it run so slow it's a joke. Basically I've built a small windowing toolkit, including cursors, window, events, dialog, selec...
by ipsp
Wed Mar 22, 2006 12:11 pm
Forum: PSP Development
Topic: cygwin libtool / freetype / SDL_ttf
Replies: 4
Views: 1595

Yes it is part of cygwin. I tried updating cygwin last night with very very very bad results, infact cygwin died entirely, and yes that pissed me off. Anyways i reinstall cygwin this time with libtool, and it worked, but unfortunately I have not had time to reinstall the additional libraries. I'm ex...
by ipsp
Tue Mar 21, 2006 1:48 pm
Forum: PSP Development
Topic: Help saving file
Replies: 7
Views: 2563

I typically save to the local folder or subfolder that contain the executable. I'm sure there is a way to write to the correct save floder but I have never bothered as i was under the impression these saves were restricted in some way. Otherwise wait for someone else to reply, I'm sure you'll get yo...
by ipsp
Tue Mar 21, 2006 12:28 pm
Forum: PSP Development
Topic: Help saving file
Replies: 7
Views: 2563

I have always just used the standard 'C' file functions and they work.

Note sure if this is the solution you want though
by ipsp
Tue Mar 21, 2006 12:25 pm
Forum: PSP Development
Topic: cygwin libtool / freetype / SDL_ttf
Replies: 4
Views: 1595

Last time i got the toolchain was late last month, but when i type libtool there is no such program, I had a look through /usr/local and the program is not there. But you are right I'll try updating the toolchain and see if it works then. One question when i update to the latest toolchain do it have...
by ipsp
Tue Mar 21, 2006 10:23 am
Forum: PSP Development
Topic: cygwin libtool / freetype / SDL_ttf
Replies: 4
Views: 1595

cygwin libtool / freetype / SDL_ttf

Hi Guys/Girls I'm trying to work out how to build/install SDL_ttf, I think I have followed it correctly, such that is first need to build/install 'freetype' library. Anyways one of the requirements for 'freetype' package is 'libtool' I have checked and I don't have it installed. I have looked at the...
by ipsp
Tue Mar 14, 2006 12:53 pm
Forum: PSP Development
Topic: Alignment woes?
Replies: 7
Views: 2342

Memory Bug

From experience, this type of behaviour is generally caused by memory overrun, and less commonly memory leak. Generally speaking if you have a piece of code writing into memory that it was not asigned then you may experience bad results but not always. For me this is generally a String related probl...
by ipsp
Sat Feb 11, 2006 5:28 pm
Forum: PSP Development
Topic: Variable argument problem
Replies: 1
Views: 890

Variable argument problem

I'm have some trouble passing parameter to functions that accept, variable arguments i.e. draw(SceSize args, void * argp) This code is required for starting threads i.e. void draw(SceSize args, void * argp) { while (1) { // print argu...
by ipsp
Thu Feb 09, 2006 11:28 pm
Forum: PSP Development
Topic: C++ problem
Replies: 3
Views: 2606

As a matter of style, I usually try to avoid having more than one copy of a class declaration, and it is possible that the compiler is somehow deciding that these are two different physical classes. By using the same .h file both for references to your class and for the definition of your class, yo...
by ipsp
Thu Feb 09, 2006 10:38 pm
Forum: PSP Development
Topic: C++ problem
Replies: 3
Views: 2606

C++ problem

I'm trying to write some C++ library classes, so i can reuse them for all of my projects, and having some trouble. For some reason it refuses to link, and i cannot see what it is. Here is source, and error, can anyone help. main.cpp #include <pspkernel.h> #include <pspdebug.h> #include "PspExit...
by ipsp
Thu Feb 09, 2006 11:21 am
Forum: PSP Development
Topic: Which IDE to use for developing for the PSP
Replies: 8
Views: 3338

Which IDE to use for developing for the PSP

I'm wonder what IDE people would suggest to develop for the PSP. I have not used an IDE for many many years (my work has our own development environment), and I'm considering either 'DEV-C++' or 'Eclipse'. Has anybody had any experience with either of these IDE, and had much trouble setting them up....
by ipsp
Thu Feb 02, 2006 9:49 am
Forum: PSP Development
Topic: Semaphore problem
Replies: 5
Views: 1904

Anyway, the thing that confused me when trying semaphores for the first time was that waiting for one implicitly subtracted 1 from its value, so if you wait for it to become "1", when you get it, it will then be "0". Then when you're done, you signal it, adding 1 to it, to make ...
by ipsp
Thu Feb 02, 2006 9:25 am
Forum: PSP Development
Topic: Semaphore problem
Replies: 5
Views: 1904

I'll try that

Here's how I've done it, and it seems to work correctly: // Create the mutex. SceUID mutex = sceKernelCreateSema("myMutexName", 0, 1, 1, 0); // Wait until the mutex is available. (Implicitly decrements its value) sceKernelWaitSema(mutex, 1, 0); // Do your protected stuff here... // Unlock...
by ipsp
Wed Feb 01, 2006 9:56 pm
Forum: PSP Development
Topic: Semaphore problem
Replies: 5
Views: 1904

Semaphore problem

I'm trying to write a small program to demostrate two threads writing to a file. I protect simaltenous writes to the file with a semaphore, but unfortunately I'm get some weird result. Can anyone tell me if the following is correct <pre> void init_Dbug() { _writeSema = sceKernelCreateSema("_wri...
by ipsp
Wed Feb 01, 2006 9:52 am
Forum: PSP Development
Topic: Mutex's & Thread's
Replies: 2
Views: 1223

Mutex's & Thread's

Can anyone tell me if the PSP has direct libraries for mutexs and/or does it support the "thread.h" standard library. Basically I need to have multiple threads, which will access a common resource, and I only want one thread to access the common code. I've used mutex_t and thread_t functio...