Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6970871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:45:55+00:00 2026-05-27T16:45:55+00:00

I have sucessfully used Farseer to develop one of my game using XNA .

  • 0

I have sucessfully used Farseer to develop one of my game using XNA. The game runs like a charm in Windows and WP7. I’m currently working on porting my game in IOS using Monotouch and Monogame. I’ve sucessfully compiled and used Farseer also over the first version of my game ported over Monotouch and Monogame. All works fine except for performances. The game runs much more slower on the iPhone device. I did some code investigations and it seems that the major bottleneck is Farseer. It become really slow when it has to manage more then 5-6 bodies with a single fixture attached (circle).

Reading the documentation I noticed that to tune Farseer I could change values from the Setting static class:

Performance

In order to get the most out of the engine, you should try and follow the guidelines below:

Enable sleeping
Sleeping enables you to have large number of bodies in the world. It can also increase the stability of the engine since small movements in a stack of bodies don’t spread in the stack. A sleeping body has little overhead, so enabling it is recommended.

Disable CCD
Continuous Collision Detection prevents tunneling but at the cost of performance. If you don’t have problems with tunneling, you should disable CCD all together.

Minimize the number of position and velocity iterations
A high number of iterations makes the engine more stable at the cost of performance. You should tweak the values to fit your game.

The bad news is that if I change any value of that class, nothing seems to happen. I tried to change values as follow:

EnableDiagnostics = false
VelocityIterations = 6
PositionIterations = 2
ContinuousPhysics = false

I tried also with lower values like VelocityIterations = 1 but nothing seems to change….

Anyone have already changed Settings class values to improve performances?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:45:55+00:00Added an answer on May 27, 2026 at 4:45 pm

    Ok,

    I have managed this. The major bottlenek was not related to Farseer. Once I solved all performance issues related to my “bad code”, tuning Farseer like described above works very well to gain 5-10% of performances.

    My game is written in XNA, ported to iOS an Android with monotouch and mono4android sucessfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Aspnet, C# 3.5 in vs2008 : I have sucessfully used the following code
I have sucessfully made and used RadioGroup's before in xml, but each time there
I have been using Sinatra for sometime now and I would like to add
I have successfully used Pocket PCs in the past (using the serial port) to
I am using IQueryable<> to build up batching queries. I have used views successfully
I have a database with one row of data that will be used across
I have used XDebug semi-sucessfully with PhpStorm and Mamp, but now I want to
I have used CellList for listing my data using ListDataProvider for managing the data
I have successfully used custom UITableViewCells using separate classes, but I keep thinking there
I have successfully used a few custom commands using MVVM-Light, but I want my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.