how to make console faster in c++

as an game engine dev i created an console graphics engine to create blazing graphics contains lighting and shadows and draw algorithms and the for loop for my 3D part was running slow and no flicker but slowly generates the walls and everything and when i update the frame again the same thing happens