How do I use vertex buffer objects or arrays in PSPGL?

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

Moderators: cheriff, TyRaNiD

Post Reply
NeoXeno
Posts: 10
Joined: Thu Oct 20, 2005 5:35 am

How do I use vertex buffer objects or arrays in PSPGL?

Post by NeoXeno »

I finally got my first homebrew demo up and running but it needs some improvement. In it, I created over a thousand characters walking around the screen with simple AI and collision algorithms. Anyway, the demo is running a bit slow and I narrowed the problem down to the rendering code. You see, I am currently using immediate mode for the geometry and would like to switch over to using vertex buffer objects or vertex arrays which I've read can improve performance in this area. Can any of you please provide a simple example of how to use any of the two methods in PSPGL? I've tried out tutorials for regular opengl but I just can't get it to work on the psp. And in case you're wondering, yes I could just decrease the number of things to render, but my future projects (real games) may even be more demanding than this simple demo so I really want to see how far I can push the handheld at this stage.

Thanks.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

The PSPGL distribution already contains such demos - have a look in the demo directory.
Post Reply