Navigation überspringen
So I updated "Water" !
0:00 / 0:21

So I updated "Water" !

saharan / さはら

@shr_id9118 Follower

Auf X besuchen

41.087 Aufrufe

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 😇

10 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von saharan / さはら

    @shr_id

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

    1 Like

  • Profilbild von SoyDegurime

    @soydegurime

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

    2 Likes

  • Profilbild von saharan / さはら

    @shr_id

    Well, I tried hard! See also:

    1 Like

  • Profilbild von matsuoka-601

    @matsuoka_601

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

    1 Like

  • Profilbild von Elliot Walmsley

    @ElliotWalmsley

    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.

    1 Like

  • Profilbild von saharan / さはら

    @shr_id

    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.

    1 Like

  • Profilbild von Perro Faldero

    @thedentde

    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!

    1 Like

  • Profilbild von saharan / さはら

    @shr_id

    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!

    2 Likes

  • Profilbild von Lazarz

    @Laz4rz

    dope

    1 Like

  • Profilbild von Gustav Ekerot

    @designgurra

    insane! so cool, well done

    1 Like