Now am finished drawing the CAD Diagram using OpenGL and VisualC++ 6.0. But the rendering speed is very slow and also while redrawing the design, large amount of memory is consumed each time and its goes on increasing. Any ideas to solve this problem?
Perhaps try and make sure you don’t have any errors in your app first?
Since this is an application. I would advice to look at CPU code (C++ here) and then OpenGL usage.
Build your project with relevant optimization flags turned on etc.
You can use gDebugger (www.gremedy.com) to look at OpenGL performance later. Use it with instrumented driver to look at GPU performance counters if it is relevant in your app.