Загрузка видео...

Не удалось загрузить видео

На главную

So I updated "Water" ! The sim is running in a single CPU thread. It should work faster now, rendering optimized & WebAssembly SIMD support! But seems like the speedup with wasm is only limited because of the heavily scattered memory access pattern 😇

40,920 просмотров • 1 год назад •via X (Twitter)

Комментарии: 10

Фото профиля saharan / さはら
saharan / さはら1 год назад

context: also the source code updated. e.g. you can see the wasm part here:

Фото профиля SoyDegurime
SoyDegurime1 год назад

a SINGLE CPU thread? How is this so well optimized?

Фото профиля saharan / さはら
saharan / さはら1 год назад

Well, I tried hard! See also:

Фото профиля matsuoka-601
matsuoka-6011 год назад

自分もいま MLS-MPM の AVX2 化に取り組んでいるので,参考になります! このシミュレーションについて,いくつか知りたい点があります.

Фото профиля Elliot Walmsley
Elliot Walmsley1 год назад

The velocity needs to be constant wrt to frame time. The sim shouldn't slow down on higher particle count, the FPS should just lower.

Фото профиля saharan / さはら
saharan / さはら1 год назад

Ideally so, but in this sim the spatial resolution is fixed and instead the view is scaled down. So physically you "just have more particles" in higher settings and nothing else is changed (except the boundaries). Have to subdivide time too when aim to a pure resolution increase.

Фото профиля Perro Faldero
Perro Faldero1 год назад

Impressive! One question: Is it on purpose that it does not really behave like water? Can one tweak parameters to make it more realistic? OK, two qustions: Can it be extended to 3D? Thanks!

Фото профиля saharan / さはら
saharan / さはら1 год назад

It's more like "ocean" than water considering all the parameters set. Maybe that's why you feel it a bit off. It's not on purpose, and increasing gravity would make it more realistic, at an additional computation cost. For the second question: Yes!

Фото профиля Lazarz
Lazarz1 год назад

dope

Фото профиля Gustav Ekerot
Gustav Ekerot1 год назад

insane! so cool, well done

Похожие видео