Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to avert flicking? about List control Pin
Justin Tay30-Mar-06 2:20
Justin Tay30-Mar-06 2:20 
GeneralRe: How to avert flicking? about List control Pin
FarPointer30-Mar-06 2:30
FarPointer30-Mar-06 2:30 
GeneralRe: How to avert flicking? about List control Pin
Justin Tay30-Mar-06 2:37
Justin Tay30-Mar-06 2:37 
GeneralRe: How to avert flicking? about List control Pin
FarPointer30-Mar-06 4:42
FarPointer30-Mar-06 4:42 
GeneralRe: How to avert flicking? about List control Pin
chybin30-Mar-06 14:55
chybin30-Mar-06 14:55 
AnswerRe: How to avert flicking? about List control Pin
James R. Twine30-Mar-06 4:39
James R. Twine30-Mar-06 4:39 
GeneralRe: How to avert flicking? about List control Pin
chybin30-Mar-06 15:01
chybin30-Mar-06 15:01 
AnswerRe: How to avert flicking? about List control Pin
James R. Twine30-Mar-06 16:47
James R. Twine30-Mar-06 16:47 
   100 messages per second from the server, or updating up to 100 images per message from the server, which happens once a second?  I have to guess the latter, otherwise things would likely be changing too fast for the eye to notice each discrete change.

   That being the case, it is likely you do not have all 100 images visible at once, correct?  Or they would be rather small, and you would likely lose fidelity.  Even if they are all visible at once, you should check to make sure that:

     1: Ensuring that it is only trying to draw visible items
     2: Not erasing the client/drawing area before drawing the image (if an updated image is the same size as the previous one)
     3: Correctly managing invalidated areas (you should only invalidate areas that have changed image data, not the entire rect of the control)
     4: Correctly using CustomDraw such that you do not get draw messages for items/subitems that do not need updating, or for images that have not changed from the last update interval.
     5: Not doing something naive like creating temporary CString objects (or other unnecessary heap activity) each time a draw request is received

   I would start with optimizing your drawing code before you go about trying to optimize how Windows is going to paint your data.  (And ignore the git that voted my previous post a "2" without providing a reason.)

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: How to avert flicking? about List control Pin
chybin30-Mar-06 19:37
chybin30-Mar-06 19:37 
GeneralRe: How to avert flicking? about List control Pin
James R. Twine31-Mar-06 0:00
James R. Twine31-Mar-06 0:00 
QuestionAbout sending mail Pin
mkoliv29-Mar-06 22:40
mkoliv29-Mar-06 22:40 
AnswerRe: About sending mail Pin
Ștefan-Mihai MOGA30-Mar-06 0:06
professionalȘtefan-Mihai MOGA30-Mar-06 0:06 
AnswerRe: About sending mail Pin
David Crow30-Mar-06 2:21
David Crow30-Mar-06 2:21 
Questionabout UNICODE project handle ANSI window Pin
FlyWithYou29-Mar-06 22:37
FlyWithYou29-Mar-06 22:37 
AnswerRe: about UNICODE project handle ANSI window Pin
Waldermort29-Mar-06 22:44
Waldermort29-Mar-06 22:44 
QuestionData Wiping Pin
rajeevktripathi29-Mar-06 22:14
rajeevktripathi29-Mar-06 22:14 
AnswerRe: Data Wiping Pin
Waldermort29-Mar-06 22:46
Waldermort29-Mar-06 22:46 
QuestionRe: Data Wiping Pin
rajeevktripathi29-Mar-06 23:30
rajeevktripathi29-Mar-06 23:30 
AnswerRe: Data Wiping Pin
Waldermort30-Mar-06 1:58
Waldermort30-Mar-06 1:58 
QuestionJust a quickie Pin
Waldermort29-Mar-06 22:05
Waldermort29-Mar-06 22:05 
AnswerRe: Just a quickie Pin
Rage29-Mar-06 23:09
professionalRage29-Mar-06 23:09 
GeneralRe: Just a quickie Pin
Waldermort29-Mar-06 23:22
Waldermort29-Mar-06 23:22 
GeneralRe: Just a quickie Pin
Nibu babu thomas29-Mar-06 23:49
Nibu babu thomas29-Mar-06 23:49 
GeneralRe: Just a quickie Pin
Waldermort30-Mar-06 0:00
Waldermort30-Mar-06 0:00 
GeneralRe: Just a quickie Pin
Rage30-Mar-06 0:06
professionalRage30-Mar-06 0:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.