I am getting doubts about how to manage graphic context. That is, Handle(V3d_Viewer) and Handle(Graphic3d_WNTGraphicDevice) objects.
I have a MFC MDI Application, and for each document, I have got a view with four rendering screens. By now, I am creating this two objects for each document, and sharing between the four different views.
My question is what is better in performance (speed and memory consumption):
1.- Create a viewer and a graphic device for all the application and use whenever I need (even setting dialog or whatever).
2.- Create a viewer and a grahpic device for each MFC View, so I will have one context for each 4 rendering views (Because they share geometry).
3.- Create a viewer and a graphic device for each rendering screen(I guess this is the worst).
Thank you very much for your help. If starts are bad, then it is too late...