Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to prevent performance loss when coliding with other vehicle? #248

Closed
TheUnknownGuyFromRoR opened this issue Jun 7, 2015 · 3 comments
Assignees

Comments

@TheUnknownGuyFromRoR
Copy link

The issue is very well known- a massive performance loss when two vehicles are coliding. Is there a way to limit it? And will it need massive re-programming to work?

@Max98
Copy link
Member

Max98 commented Jun 7, 2015

only_a_ptr found out that a vehicle A checks if it collides with B, but also B checks if it collides with A which is a problem.
I believe that this is going to be fixed.

@Max98 Max98 added the bug label Jun 7, 2015
@Max98 Max98 added this to the Post-Nextstable milestone Jun 7, 2015
@ohlidalp
Copy link
Member

@TheUnknownGuyFromRoR : Yes, there is a way to limit it, and yes, it will need massive re-programming. I haven't analyzed the simulation code in depth, but here are some rough notes:

  • Physics simulation in RoR is generally slow, the more N/B, the worse.
  • When 2 vehicles get close, RoR launches detailed collision-detection, which takes it's toll.
  • The bounding-box collision detection (detects whether vehicles are close) is pretty badly coded. This might be the reason why putting 3+ vehicles next to each other causes painful FPS death.
    I'm preparing to improve performance in this area, but right now I'm busy with 0.4.5

@Hiradur Hiradur removed this from the Post-Nextstable milestone Oct 24, 2015
@ulteq
Copy link
Contributor

ulteq commented Jan 30, 2016

This should be much less of a problem after: #466

@ulteq ulteq closed this as completed Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants