From: Jaroslav Sinecky (jsin++at++host.sk)
Date: 12/03/2003 00:52:18
Hello!
We are considering migrating the graphical kernel of our MFC based
application from Optimizer to Performer (thanks new optimizer-like features
in pf3.1!). I found a reference to a simple example of MFCPerformer program
in performer-list archive (submitted by Jan P. Springer) and started off
with this sample. Also someone reported on the mailist that performer
applications based on MFC eat memory. Really the memory reported by task
manager is increasing slowly as the program is running but worse even the
performance falls down very rapidly. After couple minutes it gets
practically stuck.
I continued testing and to get more control over what's happening tryied MFC
application based on libpr only. This was behaving the same. Later I
realised "the bad thing" was happening in pfWindow::swapBuffers(). Indeed
when I changed this for simple ::SwapBuffers(HDC) the application got
finally stable. So what's happing in pfWindow::swapBuffers besides just
swapping buffers?
Then I tryied the libpf based application again but setting the type of
pfPipeWindow with PFPWIN_TYPE_UNMANAGED. According to man pages This should
turn off the position/size managment (the position really gets messed up)
and also automatic buffer swapping but it continued displaying frames (hence
swapping). So how does this flag works?
The complete project files for both pf and pr version (for VC7) can be found
here:
http://home.tiscali.cz/pusher/mfcperformerpr.zip
http://home.tiscali.cz/pusher/mfcperformerpf.zip
Most interesting things are happening in CMFCPerformer::InitApplication,
CMFCPerformerView::OnCreate and CMFCPerformerView::Frame.
I can imagine performer team guys are having lot to do preparing 3.1 release
but I would be really glad if someone could have look at it.
Or has someone else more success writting mfc-performer programs?
Jaroslav
*******************************************
Jaroslav Sinecky
Topmes v.o.s. Prague
http://www.topmes.cz
This archive was generated by hypermail 2b29 : Wed Dec 03 2003 - 06:21:17 PST