Skip to main content
gamedev.net
🔒 Locked

ODE and PS2

Started by leoptimus 2 replies 750+ views
Original Post
leoptimus
leoptimus
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?
"Technocracy Rules With Supremacy" visit: http://gimpact.sourceforge.net
WillC
WillC
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.


Halsafar
Halsafar
Any tips for getting started programming for the PS2?
leoptimus
leoptimus
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
"Technocracy Rules With Supremacy" visit: http://gimpact.sourceforge.net

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.