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

Most simulations unstable and blow up. #3

Open
XorTdsc opened this issue Jan 6, 2025 · 3 comments
Open

Most simulations unstable and blow up. #3

XorTdsc opened this issue Jan 6, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@XorTdsc
Copy link

XorTdsc commented Jan 6, 2025

When using the provided link (https://electronicarts.github.io/pbmpm/) most simulations run fast, but are extremely unstable and blow up given the default settings. Given that the talk mentions stability to be the main strength I suspect a bug.

I'm on a MacBook Pro M1 MAX 14inch 2021 and using Chrome 133.0.6905.0

See video:

Untitled.mov

PS.: Besides the blow up which probably can be fixed this looks very promising. Good work ! I'd be very interested in seeing and playing with a stable version of this. :)

@XorTdsc
Copy link
Author

XorTdsc commented Jan 7, 2025

Interestingly it runs as it should when using my PC (Chrome + RTX 3070 Ti). Is it possible that the Mac has precision issues ? Seems somehow unlikely though as I would expect more problems with games in that case...

@chlewin
Copy link
Collaborator

chlewin commented Jan 10, 2025

Yes, it looks like there is some kind of bug specifically with Mac. If I can get hold of the hardware I will look into fixing this, but also happy to accept a PR if you figure it out on your end. My initial guess would be that possibly local memory is not being correctly zeroed by the driver and this is causing these large forces to be generated.

@chlewin chlewin added the bug Something isn't working label Jan 10, 2025
@chlewin chlewin self-assigned this Jan 10, 2025
@XorTdsc
Copy link
Author

XorTdsc commented Jan 12, 2025

Yes, it looks like there is some kind of bug specifically with Mac. If I can get hold of the hardware I will look into fixing this, but also happy to accept a PR if you figure it out on your end. My initial guess would be that possibly local memory is not being correctly zeroed by the driver and this is causing these large forces to be generated.

Ah okay, that sounds like a good explanation for the issue. Not sure if I have time to to debug this in the near future, but if I do, I'll make a PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants