1321
DF General Discussion / Re: What language is Dwarf Fortress made in?
« on: September 10, 2010, 06:24:22 pm »So you're saying that the part where speed matters, manipulating the actual wireframes, is done in assembly? The parts where speed doesn't matter is in C++? Color me surprised. Why don't they write those parts in C++? That is because it would be slow as shit.Just the implementation of the matrix multiply etc functions. Functions where using specific assembly instructions that aren't available as normal c++ operators (e.g. SSE) is beneficial. And even then I'm sure I saw compiler vector intrinsics instead of assembly being used for some of the platforms, I'll check on Monday.
And you're sadly mistaken if you think speed doesn't matter anywhere else...
And for the record, the matrix ops aren't used for "manipulating the wireframes". Transformation of mesh vertices is much better handled by the GPU.
