Skip to content

Pepuphysics as server with collisions best way to handle it #338

Answered by RossNordby
Dendeii asked this question in Q&A
Discussion options

You must be logged in to vote

This is a pretty broad question, so I doubt I'll be able to give you a real "best." One thing that comes to mind is that I wouldn't expect the approach in the contact events demo to struggle with performance at these scales. You could try something like CollisionTrackingDemo (and I do tend to prefer it over conventional events), but I don't actually expect the performance to differ by much. There's also SolverContactEnumerationDemo, but same thing.

My guess is the greater performance consideration is what is being done in response to the collisions, rather than the reporting of those collisions. If something expensive and/or requiring locks to synchronize was in the contact events, that c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dendeii
Comment options

Answer selected by Dendeii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants