I've got a (very) messy bit of code that was originally written in watcom c++ and compiled as a 32bit dos protected mode exe using dos4gw extender.
It basically takes a list of lines from a file and creates a Hidden Line drawing.
In the original Dos app it took a few seconds to complete the image, after getting it to run in a VC6 MFC application it takes about a minute +.
I only started teaching myself C++ about 8 months ago and this code is way beyond me!
I fairly sure its a BSP tree, but i can't understand why it's so slow.
I've searched the net for months and there is lots of info about BSP and i get the concept but it hasn't really helped me understand the code i have.
If anyone can help me understand why it's so slow, or even better how to make it quicker (or even a different way of getting the same image) it might just stop me from tearing my hair out ;)
standalone VC 6 project :