As you know, TPT is written in C++. I'm more of a C guy for its non-bloated nature. I'm not here to start a war about C/C++ but rather to discuss something.
TPT is using the SDL library. It's a C library, even though it's compatible with C++, like 99% of the C code on Earth. I believe the game would get a major speedup with C, even though it'll be more complex.
I understand that threading in C++ is a piece of cake compared to threading in C, which is a nightmare. But appart from that, by switching the object oriented model for a more... C like approach would probably befinit to the performances.
Of course, I at the time I write this, I'm only compiling the game from the Arch Linux AUR, so I don't know the source code yet.
I know rewriting a game is a nightmare on lots of different levels, but I'd like to have the point of view of some of you on the topic.
TheGreatDoge:
I believe the game would get a major speedup with C
TheGreatDoge:
But appart from that, by switching the object oriented model for a more... C like approach would probably befinit to the performances.
>still use pthreads for threading
Last I checked, no compilers except GCC even properly support C++11 threads. Did that change?