Increase Air Simulation Resolution

  • odvigajlo
    1st Jun 2022 Member 0 Permalink

    How do i increase air simulation resolution? And yes i know this is heavy perfomance impact

  • 6nop6nop
    1st Jun 2022 Member 0 Permalink

    youll have to compile it yourself and change the CELL constant in 

    The-Powder-Toy/src/simulation/SnapshotDelta.cpp

    i would have done this already but my machine really hates compiling c++

  • odvigajlo
    1st Jun 2022 Member 0 Permalink

    @6nop6nop (View Post)

     soo i opened SnapshotDelta.cpp and where should i change it?

  • jacob1
    1st Jun 2022 Developer 1 Permalink
    The actual file you need to edit is src/Config.template.h

    You can use the wiki to learn how to compile TPT, there is a guide written there.
  • 6nop6nop
    1st Jun 2022 Member 0 Permalink

    sorry i copied the wrong file

  • odvigajlo
    1st Jun 2022 Member 0 Permalink

    @jacob1 (View Post)

    yeah i see it now

  • 6nop6nop
    1st Jun 2022 Member 0 Permalink

    lmao i tried it (miraculously brew fftw didn't barf this time) and none of the powders fall, they just make turblence. I'm getting a solid 20 fps with a circle of sand though.
    https://imgur.com/a/MvsQsx0

    Edited 2 times by 6nop6nop. Last: 1st Jun 2022
  • jacob1
    1st Jun 2022 Developer 0 Permalink
    @6nop6nop (View Post)
    Change ISTP to 1 also and it should work. When it's set to 0 the physics totally break.
  • 6nop6nop
    1st Jun 2022 Member 0 Permalink

    @jacob1 (View Post)

     thanks