Hi Eric, you said:
Originally posted by Eric:
[b]Just a remark flappy : you can have only one rendering context per document i.e. you are not forced to have one RC per view.
Anyway, your 9mb must be due to the DC and not the RC… And as you need one DC per view, the result is the same…
I’ve choosen to have a separate RC for each view for future expansions: I originally planned to design a multithreaded view class (there must be an RC for every thread), then I realized that multithreaded MDI interfaces are a real nightmare.
Perhaps in the future I’ll try to move the RC handle into the Document class but I’m afraid this will introduce some state switching (by the way does someone knows if RC switching is slower or faster than state switching?).
Another way could be to share a single RC among all views.