number of moving physics objects
2 posters
number of moving physics objects
In my game I want to have several moving physics objects, at times many of them will be in the scene at once. "Several" is 5 to 15.
I'm finding that 6 is a stretch. My rendering and physics framerate is dropping to around 4 to 6 fps. Is this to be expected? What can I do to improve this performance?
thanks,
George
I'm finding that 6 is a stretch. My rendering and physics framerate is dropping to around 4 to 6 fps. Is this to be expected? What can I do to improve this performance?
thanks,
George
waterbuffalo99- Posts : 36
Join date : 2009-06-03
Re: number of moving physics objects
Try to use simple collision shape with large static triangle mesh. The most CPU intensive shapes are convexhull... and of course soft body...
You can use tutorial061 as a benchmark and duplicate the object of type of your choice to test the performance...
Having another physic thread is also helping... as well has having concentrating the physic calculation among multiple frames instead of forcing the simulation step to be executed on everyframe.
But... once again every games are different... what type of game are you working on?
You can use tutorial061 as a benchmark and duplicate the object of type of your choice to test the performance...
Having another physic thread is also helping... as well has having concentrating the physic calculation among multiple frames instead of forcing the simulation step to be executed on everyframe.
But... once again every games are different... what type of game are you working on?
moving physics objects
I assumed that objects like your example palm trees that are a complicated shape, that convex hull would be less cpu intensive, but you're saying no to that.
So I'll make sure all my static objects are simple. Does that mean even if they are a cube, cone, etc. I should not select that for the "bounds" type? Or just that I should avoid Convex Hull? I did in fact have a few objects where the bounds type was convex hull.
-George
So I'll make sure all my static objects are simple. Does that mean even if they are a cube, cone, etc. I should not select that for the "bounds" type? Or just that I should avoid Convex Hull? I did in fact have a few objects where the bounds type was convex hull.
-George
waterbuffalo99- Posts : 36
Join date : 2009-06-03
type of game
The game type is action adventure. The game play will be somewhat like Destroy All Humans 2 (but the theme is completely different).
-George
-George
waterbuffalo99- Posts : 36
Join date : 2009-06-03
Re: number of moving physics objects
What you should do for is:
- For shape like a house, you can easily set the bound to cube.
- For shape like a tree (like the palm tree in tutorial04), do not set the collision on the object but on another invisible object, like in this case a cylinder at the base of the tree...
In other words, for all "regular" shape that can easily be recognize of one of the basic shape, simply use the appropriate bound. For all more complex irregular shape use and invisible geometry (like an empty or another shape) where is make sense.
- For shape like a house, you can easily set the bound to cube.
- For shape like a tree (like the palm tree in tutorial04), do not set the collision on the object but on another invisible object, like in this case a cylinder at the base of the tree...
In other words, for all "regular" shape that can easily be recognize of one of the basic shape, simply use the appropriate bound. For all more complex irregular shape use and invisible geometry (like an empty or another shape) where is make sense.
Similar topics
» Limitation in the number of objects?
» picking and moving 3d objects
» Moving physic objects to specific pos
» Programatically Creating Objects
» Camera moving
» picking and moving 3d objects
» Moving physic objects to specific pos
» Programatically Creating Objects
» Camera moving
Permissions in this forum:
You cannot reply to topics in this forum