Sign in to follow this  
leoptimus

ODE and PS2

Recommended Posts

leoptimus    106
Hi! I've never had experience on Play Station 2. So, do you know, Is Open Dynamics Engine good for the PS2 console? Does it has memory management problems on PS2?

Share this post


Link to post
Share on other sites
WillC    548
It's certainly possible to get ODE working on the PS2, and I believe a few commercial games have done just this.

You will run into some memory management problems though. First and foremost, the ODE constraint solver uses the stack for workspace and so if you have too many constraints in an island (read as too many simultanious collisions or stacked objects) then it's very common to get stack overflow problems. This can be solved by modifying the solver, but requires a fair understanding of how it works, which is not for the faint hearted.

Also it's a good idea to be using a custom memory allocator, and preferably one with special small object handling (ie. small memory allocator) as ODE does a lot of allocations when creating objects, joints etc. Without a custom allocator it may be slow, and prone to memory fragmentation.

The final problem you'll encounter is that ODE is not optimised for the SIMD maths techniques that are essential on the PS2 for good performance. The compiled C code will be using standard float operations on the PS2 main processor (EE) and for good performance you will need to convert some of the time critical code to run on VU0.

All this is possible though, and will give good results if you know what your doing; but since you say you have no PS2 experience, I would suggest it may be a bad idea.


Share this post


Link to post
Share on other sites
leoptimus    106
Halsafar, Have you ever got PS2 SDk? It's a good start for make PlayStation games. visit:
http://ps2dev.org/

However, Microsoft was publishing an intereseting article for those who want to program to XBox360. Those tips are applicalble to PS3 too:
http://www.xbox.com/NR/rdonlyres/3FCB65F9-E9E5-45DB-B7F9-59A5EE265B8F/0/Xbox360Preparation.doc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this