Game Development Community

Farseer objects sinking in

by Will O-Reagan · in Torque X 2D · 10/02/2010 (10:28 pm) · 12 replies

I was was running some farseer simulations and noticed that at the end of the simulation, objects were "sinking into" the surfaces, or in some cases, just sinking into each other. I found this to be a very odd behavior, considering how well the objects were performing, and I'm wondering if anyone knows what could be happening.



Also seeing some other behaviors, such as objects getting stuck. Any ideas?

-Will

About the author

I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.


#1
10/02/2010 (10:57 pm)
I think I had a similar issue Holes in Polygon

In the FSGeomComponent try setting the GridSize to 1. Ron explains it right under my post in the link above.

You could also make some sort of movable object so you can test to see if there is an actual "hole" in that location.

Aaron
#2
10/03/2010 (12:15 am)
Interesting. That did help, actually it was happier when i lowered it to like .1.

Also, lowering the number of objects in the simulation helped alot, I had a spawner offscreen that i think was ruining the simulation. Removing that eliminated 95% of the buggy behavior.
#3
10/03/2010 (3:23 pm)
This is intresting. I'm getting this occasionally, I'll play with the settings.

Will this effect perfomance?
#4
10/03/2010 (5:05 pm)
Were all pretty new to the farseer, but so far my impression is yes, increasing those grids will effect performance.

I suspect the best way's to enhance performance is to change which objects collide with each other. My simulation required all objects to collide with each other, but thats not necessary in most games.
#5
10/03/2010 (5:58 pm)
You might also run a test on the xbox, as for me, the performance and functionality is much better on the xbox (problems on the pc are not always problems on the xbox... might only be my issue though, I'm starting to think it's a graphics card issue).
#6
10/03/2010 (6:10 pm)
Cheers guys ;-)
#7
10/03/2010 (6:51 pm)
Xbox vs PC: on PC the game is typically competing with other applications for resources and this can sometimes cause glitches due to skipping frames/delayed updates - issues which don't appear on xbox because on xbox your game is not competing for resources. I've noticed a few glitches like this with the PSK for example, so I would imagine that farseer is similar (running the game fullscreen should help)

#8
10/04/2010 (9:06 pm)
Xbox deployment was much worse. Deployment showed many errors, where there were none before.

Any more enhancements we can get, to speed this up?
#9
10/04/2010 (9:56 pm)
Actually running in non-debug mode is much better... My bad again.. running in debug mode is just too tough for the farseeer
#10
10/04/2010 (11:39 pm)
Interesting - normally I find xbox is more consistent and performs better than PC. Perhaps my PC is showing it's age :-)
#11
10/05/2010 (12:07 am)
actually, xbox did look better, but not in "debug mode" debug mode is a serious issue for the xbox.

#12
10/07/2010 (10:48 pm)
Will,

Debug mode on the Xbox is very bad only when you omit the GamerService component, once that is loaded as part of the game all works just fine ;)