Solved

How to accelerate  the display speed

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 49
not able to insert into temp table 68 162
Use of condition with 'serial' in ansible 2 60
how to use laptop or pad camera in vb.net windows application 2 71
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

777 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