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

Bad performance with kinematic body #9

Open
finscn opened this issue May 5, 2018 · 3 comments
Open

Bad performance with kinematic body #9

finscn opened this issue May 5, 2018 · 3 comments

Comments

@finscn
Copy link
Contributor

finscn commented May 5, 2018

I create a demo 'Tumbler' for testing performance .

And I found a strange thing.

When I use kinematic body to the Tumbler outbox , the performance is bad.
http://fatidol.com/phy-benchmark/box2d-ts-test.html?type=kinematic
(40 FPS on my macbook)

When I use dynamic body + revolute joint to the Tumbler outbox , the performance is better.
http://fatidol.com/phy-benchmark/box2d-ts-test.html
(60 FPS on my macbook)

This result puzzles me :
When & How should I use kinematic ?

@Nek-
Copy link
Contributor

Nek- commented Jun 4, 2018

This experiment is interesting. I hope you don't mind I created a gist with the code as record in case your site is down :) .

https://gist.github.com/Nek-/d48853f93c8bde0592c92bab3da6af96

@flyover
Copy link
Owner

flyover commented Nov 25, 2019

@finscn Have you tried this on the C++ version? It sounds like it might not be specific to this port.

@finscn
Copy link
Contributor Author

finscn commented Dec 2, 2019

I don't any thing about C++ . So I'm sorry I can't give any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants