Click here to Skip to main content
15,943,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About memory copy speedup Pin
John M. Drescher1-Mar-04 18:33
John M. Drescher1-Mar-04 18:33 
GeneralRe: About memory copy speedup Pin
Prakash Nadar1-Mar-04 18:42
Prakash Nadar1-Mar-04 18:42 
GeneralRe: About memory copy speedup Pin
John M. Drescher1-Mar-04 18:48
John M. Drescher1-Mar-04 18:48 
GeneralRe: About memory copy speedup Pin
Daniel Turini1-Mar-04 19:30
Daniel Turini1-Mar-04 19:30 
GeneralRe: About memory copy speedup Pin
w_yufeng1-Mar-04 19:35
w_yufeng1-Mar-04 19:35 
GeneralRe: About memory copy speedup Pin
Daniel Turini1-Mar-04 21:20
Daniel Turini1-Mar-04 21:20 
GeneralRe: About memory copy speedup Pin
Lido Paul1-Mar-04 22:30
Lido Paul1-Mar-04 22:30 
GeneralRe: About memory copy speedup Pin
Daniel Turini2-Mar-04 0:43
Daniel Turini2-Mar-04 0:43 
I understood it, but I think you did not understand me: the problem is that with the call m_pAcqExBuffers->GetImageAddress(nCurBufIndex), the responsibility for allocating memory is in the m_pAcqExBuffers object. I don't know if this class can be modified by you, but imagine if you can call something like m_pAcqExBuffers->SetImageAddress(nCurBufIndex, m_pXn_1); This way you won't need to memcpy a single byte, as the ccd will put the data right were you want.
Even if this fails, if you implement a circular buffer and preserve it between calls, you'll need only 1 memcpy per pass: you don't need to call GetBufferIndex amd GetImageAddress on the last image, as it will be on the circular buffer already.
But you'll still facing problems, as you'll be reducing a memory transfer of 400MB/second to 200MB/second. 200MB/second is still a big figure, and if you change the code as I pointed, you'll be able to avoid it completely.


Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
GeneralRe: About memory copy speedup Pin
Lido Paul2-Mar-04 15:02
Lido Paul2-Mar-04 15:02 
GeneralRe: About memory copy speedup Pin
Resolver2-Mar-04 22:39
professionalResolver2-Mar-04 22:39 
GeneralModem dialup to retrieve data from SQL 2000 Server... Pin
DengJW1-Mar-04 17:21
DengJW1-Mar-04 17:21 
GeneralRe: Modem dialup to retrieve data from SQL 2000 Server... Pin
Prakash Nadar1-Mar-04 17:31
Prakash Nadar1-Mar-04 17:31 
GeneralRe: Modem dialup to retrieve data from SQL 2000 Server... Pin
DengJW1-Mar-04 18:24
DengJW1-Mar-04 18:24 
GeneralRe: Modem dialup to retrieve data from SQL 2000 Server... Pin
John M. Drescher1-Mar-04 18:39
John M. Drescher1-Mar-04 18:39 
GeneralRe: Modem dialup to retrieve data from SQL 2000 Server... Pin
DengJW1-Mar-04 19:04
DengJW1-Mar-04 19:04 
GeneralRe: Modem dialup to retrieve data from SQL 2000 Server... Pin
John M. Drescher1-Mar-04 19:28
John M. Drescher1-Mar-04 19:28 
GeneralRe: Modem dialup to retrieve data from SQL 2000 Server... Pin
DengJW1-Mar-04 19:36
DengJW1-Mar-04 19:36 
GeneralProblem sovled. Thank u all. Cause is ... Pin
DengJW1-Mar-04 21:07
DengJW1-Mar-04 21:07 
QuestionThough here is C++ but I have a database problem? Pin
DengJW1-Mar-04 16:36
DengJW1-Mar-04 16:36 
AnswerRe: Though here is C++ but I have a database problem? Pin
Prakash Nadar1-Mar-04 18:35
Prakash Nadar1-Mar-04 18:35 
GeneralRe: Though here is C++ but I have a database problem? Pin
DengJW1-Mar-04 18:52
DengJW1-Mar-04 18:52 
GeneralRe: Though here is C++ but I have a database problem? Pin
Prakash Nadar1-Mar-04 19:17
Prakash Nadar1-Mar-04 19:17 
GeneralRe: Though here is C++ but I have a database problem? Pin
DengJW1-Mar-04 19:50
DengJW1-Mar-04 19:50 
AnswerThank u all. Sovled problem. the cause is WIn2k modules corrupted Pin
DengJW1-Mar-04 21:05
DengJW1-Mar-04 21:05 
GeneralCreating child processes within a window Pin
perrymail20001-Mar-04 16:07
perrymail20001-Mar-04 16:07 

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.