What is the most complicated, math intensive, computation ridden, difficult aspect or part of the TPT Code? I would guess that it might be the Newtonian gravity calculations, or the pressure / Air Simulation calculations.
the most convoluted class file seems to be Simulation.cpp, but I could be wrong.
Another small question, Is the reason the code was never stream-lined & made efficient from the begining because the code was initially so complex that such a task would have been considered ridiculous?
Yeah, I am not sure I buy that. One, C is turing complete. Two, they were fully aware of the crazy stuff structs and unions make possible. OOP and Lambda based C is entirely possible, and they knew it. They just didn't make it easy.
I did some profiling a while back, and determined that most time is spent in Simulation.cpp. The simulation update function that loops through and updates each particle (I forget the name of the function). Of course, this is kind of a moot point since short of multi threading, that function can't really be improved, and it's speed depends entirely on the speed of the update functions.
How difficult is it, in c++, to register a program window for windows? I'll tell you - DIFFICULT, unless one copies a template. I would think that images and other graphics would be hard to manage too.
I don't think they actually have to worry about that at all, considering that they are using SDL. It handles all that auto-magically. I do imagine the text rendering would be a PITA, since SDL is not like GTK or QT, which are centered towards text intensive apps.
How do you use the font editor? It only ever draws white for me :(