Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFont dialog problems Pin
halblonious19-Sep-03 11:12
halblonious19-Sep-03 11:12 
Generalperformance question Pin
Gary Kirkham19-Sep-03 10:59
Gary Kirkham19-Sep-03 10:59 
GeneralRe: performance question Pin
Joe Woodbury19-Sep-03 12:35
professionalJoe Woodbury19-Sep-03 12:35 
GeneralRe: performance question Pin
Tim Smith19-Sep-03 12:40
Tim Smith19-Sep-03 12:40 
GeneralRe: performance question Pin
Gary Kirkham19-Sep-03 13:26
Gary Kirkham19-Sep-03 13:26 
GeneralRe: performance question Pin
Gary R. Wheeler20-Sep-03 3:28
Gary R. Wheeler20-Sep-03 3:28 
GeneralRe: performance question Pin
Gary Kirkham20-Sep-03 11:52
Gary Kirkham20-Sep-03 11:52 
GeneralRe: performance question Pin
Gary R. Wheeler20-Sep-03 14:13
Gary R. Wheeler20-Sep-03 14:13 
It's not so much the fact that you've got the entire bitmaps in memory at one time, it's how you access it. If you can access it in a fashion that avoids cache misses, which force expensive cache flushes and refills, that improves performance. Typically, you want to access memory through consecutive addresses, 'skipping about' as little as possible.

For your example, let's assume that each pixel in a row occupies consecutive memory addresses. In that case, you want to work within a row as much as possible, and change rows only when you have to. If you went column by column instead, you would have cache misses on almost every pixel reference, which would hamper performance.

(brief pause while I Google bilinear interpolation)

Assuming I understand what bilinear interpolation does, if you keep pointers to a preceding row, current row, and a next row, and increment them down the row, this avoids the cache misses that would occur if you went column by column.

I'm not sure if this helps. Good luck.


Software Zen: delete this;
Generalpassing data structures Pin
Sirrius19-Sep-03 10:36
Sirrius19-Sep-03 10:36 
GeneralRe: passing data structures Pin
Michael Dunn19-Sep-03 11:11
sitebuilderMichael Dunn19-Sep-03 11:11 
GeneralRe: passing data structures Pin
Sirrius19-Sep-03 14:36
Sirrius19-Sep-03 14:36 
GeneralRe: passing data structures Pin
Sirrius19-Sep-03 13:00
Sirrius19-Sep-03 13:00 
GeneralWord wrap in Rich Edit and multiline edit Pin
insanely42019-Sep-03 9:07
insanely42019-Sep-03 9:07 
GeneralRe: Word wrap in Rich Edit and multiline edit Pin
David Pritchard1-Jun-04 14:21
David Pritchard1-Jun-04 14:21 
GeneralFinding the sum of all intergers between x & y Pin
pam128819-Sep-03 9:03
pam128819-Sep-03 9:03 
GeneralRe: Finding the sum of all intergers between x & y Pin
Tim Deveaux19-Sep-03 9:31
Tim Deveaux19-Sep-03 9:31 
GeneralRe: Finding the sum of all intergers between x & y Pin
Tim Smith19-Sep-03 9:34
Tim Smith19-Sep-03 9:34 
GeneralRe: Finding the sum of all intergers between x & y Pin
Tim Smith19-Sep-03 9:34
Tim Smith19-Sep-03 9:34 
GeneralRe: Finding the sum of all intergers between x & y Pin
Harco19-Sep-03 9:40
Harco19-Sep-03 9:40 
Generalinhereted static member referencing Pin
Harco19-Sep-03 8:58
Harco19-Sep-03 8:58 
GeneralRe: inhereted static member referencing Pin
antlers19-Sep-03 12:07
antlers19-Sep-03 12:07 
GeneralExport CWnd* from DLL Pin
Mathias S.19-Sep-03 8:26
Mathias S.19-Sep-03 8:26 
GeneralMessages to derived CWnd object on CFormView Pin
Anonymous19-Sep-03 8:23
Anonymous19-Sep-03 8:23 
GeneralOnPaint() as opposed to OnDraw() Pin
ComboController19-Sep-03 8:14
ComboController19-Sep-03 8:14 
GeneralRe: OnPaint() as opposed to OnDraw() Pin
David Crow19-Sep-03 8:30
David Crow19-Sep-03 8:30 

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.