Click here to Skip to main content
15,905,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Odd BitBlt timings Pin
Mircea Puiu29-Oct-05 7:32
Mircea Puiu29-Oct-05 7:32 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 9:06
RandomMonkey29-Oct-05 9:06 
GeneralRe: Odd BitBlt timings Pin
Mircea Puiu29-Oct-05 9:11
Mircea Puiu29-Oct-05 9:11 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 9:14
RandomMonkey29-Oct-05 9:14 
GeneralRe: Odd BitBlt timings Pin
Mircea Puiu29-Oct-05 9:22
Mircea Puiu29-Oct-05 9:22 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 9:38
RandomMonkey29-Oct-05 9:38 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 9:49
RandomMonkey29-Oct-05 9:49 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 10:26
RandomMonkey29-Oct-05 10:26 
Ok - question time. My application is a MIDI software sequencer, and the windows can be piano views, event views, or other views. I chose to create these views on the fly, as the user can make the 'bars' take more or less space, and each view will be changed. These views can be quite long. A quick calculation shows that a six minute performance can have up to 135,000 pixels in width, and these views can be up to 1000 (or more) pixels in height. In addition, there are an unknown number of windows, as the user can have as many tracks in the performance as they desire (until their computer craps out, of course).

From that, you can see why I chose to create these views on the fly, and only create what needs to be blitted. It would just be too slow if I didn't, and it would take WAY too much memory.

So my question is what would a DIB buy me in this scenario? I am creating the scene using the device that it will be blitted to, so it doesn't make sense to me to put a DIB intermediary in there. That would just make Windows perform many more operations behind the scene, in order to blit what I am blitting. It would take the DDB for the device, convert it to DIB, and then blit it to the DDB stage again, for the exact same device that was used to originally create it. Every scrollbar change and every window resize would result in a huge increase in processor usage to do this background processing. Just reblitting the screen would be slowed down as well, as the WM_PAINT handler would have to go through the entire process.

Please don't take this as me not liking what you have done, or your advice. I am simply trying to get my thoughts down in a cohesive manner, in order to learn more efficiently.

Thank you,
David

Debugging - The high art and magic of cussing errors into 'features'
GeneralRe: Odd BitBlt timings Pin
ddupre29-Oct-05 11:53
ddupre29-Oct-05 11:53 
GeneralRe: Odd BitBlt timings Pin
RandomMonkey29-Oct-05 15:00
RandomMonkey29-Oct-05 15:00 
GeneralRe: Odd BitBlt timings Pin
ddupre29-Oct-05 17:45
ddupre29-Oct-05 17:45 
GeneralA Major clue Pin
RandomMonkey29-Oct-05 19:49
RandomMonkey29-Oct-05 19:49 
GeneralRe: A Major clue Pin
RandomMonkey30-Oct-05 6:10
RandomMonkey30-Oct-05 6:10 
QuestionIP range. Help Needed Pin
Radu Sorin28-Oct-05 20:40
Radu Sorin28-Oct-05 20:40 
AnswerRe: IP range. Help Needed Pin
Ghasrfakhri29-Oct-05 0:06
Ghasrfakhri29-Oct-05 0:06 
Questioncannot convert parameter 1 from 'CComboBox' to 'CComboBox' Pin
kevincwong28-Oct-05 19:31
kevincwong28-Oct-05 19:31 
AnswerRe: cannot convert parameter 1 from 'CComboBox' to 'CComboBox' Pin
RandomMonkey28-Oct-05 19:48
RandomMonkey28-Oct-05 19:48 
GeneralRe: cannot convert parameter 1 from 'CComboBox' to 'CComboBox' Pin
kevincwong28-Oct-05 20:10
kevincwong28-Oct-05 20:10 
QuestionSave/Open Dialog Pin
Tom Sapp28-Oct-05 17:22
Tom Sapp28-Oct-05 17:22 
AnswerRe: Save/Open Dialog Pin
RandomMonkey28-Oct-05 18:06
RandomMonkey28-Oct-05 18:06 
AnswerRe: Save/Open Dialog Pin
Gary R. Wheeler29-Oct-05 3:35
Gary R. Wheeler29-Oct-05 3:35 
QuestionWINVER and Graphics projects using glut Pin
adonisv28-Oct-05 15:40
adonisv28-Oct-05 15:40 
Questionneed help in speech recognitiion Pin
gr8coaster32928-Oct-05 13:22
gr8coaster32928-Oct-05 13:22 
AnswerRe: need help in speech recognitiion Pin
Ravi Bhavnani28-Oct-05 16:54
professionalRavi Bhavnani28-Oct-05 16:54 
QuestionRe: need help in speech recognitiion Pin
gr8coaster32929-Oct-05 7:01
gr8coaster32929-Oct-05 7:01 

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.