Solved

How to accelerate  the display speed

Posted on 1998-10-21
2
163 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 200 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 21
Tab names are off by one 5 49
Detect CR LF to each line 12 137
method notes when mouse over in eclipse 5 68
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now