Parallelisation (multi-threading) in TPT

  • 70UNIKITTY
    8th Mar 2020 Member 0 Permalink

     

    The highly single-thread usage with this game is basically appalling when I have a six-core/12 thread i7-8750H. I bet even with thermal/power limit throttling applied, that TPT will run faster on all 12 threads (and should be able to run off more) than on a single damn thread.

     

    Please prioritise multi-threadding for the next update, this will boost performance by a significant margin.

     

    BTW, I was using "water equalisation". Maybe GPU utilisation for the physics would work as well?

    Edited once by 70UNIKITTY. Last: 8th Mar 2020
  • jacob1
    8th Mar 2020 Developer 1 Permalink
    You act like we can just flip a switch and turn on multithreading ...

    multithreading is very difficult to get right in a game like TPT. If we carelessly add it, particles will move into each other, or the state will get messed up. Multithreading particle updates is a little easier than movement, but still has some challenges with certain elements like ARAY that fire across the screen.

    We talk about multithreading all the time, and it will probably happen eventually, when someone experienced with the code picks up the task. But it's not happening any time soon. It would take a lot of effort to add.