My purpose was to testify the performance of OCCT with many primitive shapes I use MFC application with the following code to create the 4000 spheres, I don't think that 4K shapes is huge amount in nowadays computers but performance is really slow, around 3-4minutes. I also noticed that spheres are added to scene one by one without any buffering, I believe that main bottleneck is due to that. What can I do to improve it ?
for (int i= 0; i
void CMFC_TestDoc::DrawSphere(int Radius, gp_Vec loc_vec)
gp_Trsf trans; // Создаем преобразование
gp_Vec shift(-100, 20, 30.); // Вектор сдвига
trans.SetTranslation(loc_vec);// Преобразование сдвига
myAISContext->Display(new AIS_Shape(Sphere) ); // Draw the Sphere on the Screen