Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to accelerate  the display speed

Posted on 1998-10-21
2
Medium Priority
?
184 Views
Last Modified: 2013-11-20
Hi,
    I will display a large bitmap in my view client.
    And I have to process its content and change it      very frequently,how can  I accelerate the display    speed.Is palette useful to that( in 24 bit display
   mode)
0
Comment
Question by:XiaoChen
2 Comments
 
LVL 3

Expert Comment

by:arnond
ID: 1323679
the best way is to have a memory DC (or CBitmap) and do all the updates in the memory and only then BitBlt it to your screen DC.
0
 
LVL 2

Accepted Solution

by:
jstolan earned 400 total points
ID: 1323680
This is a really huge question and the answer is "It depends".  There are several different cases:

1.  Palette animation can be really fast if you can design your bitmap so that merely changing colors will do what you need.  For example if your image is of a street scene at night, you can animate the buildings by changing certain colors from black to white, giving the illusion of lights switching on and off.

2.  Arnonds suggestion for doing the updates in memory and BitBlting to the screen is a good one.  It will work for a lot of cases.  However, if your changing from one large bitmap to another in one operation, it won't be any faster than just blting the new bitmap over the old.  The procedure works best when there are several small changes being made to the bitmap at the same time.  For example, if you need to animate a rotation of an object, there will be a lot of small recalculations that go into the display.  This process will make the transition appear to be nearly instantaneous.  If your using the generic windows bitblt functions however, large blts will still appear very flickery and jerky.

3.  The best approach is to use DirectX.  This library has special functions to solve these problems.  But of course there is that learning curve!

Good luck
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question