Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
CPallini7-Mar-07 9:24
mveCPallini7-Mar-07 9:24 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery7-Mar-07 9:30
Mark Salsbery7-Mar-07 9:30 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Jun Du7-Mar-07 9:35
Jun Du7-Mar-07 9:35 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery7-Mar-07 9:44
Mark Salsbery7-Mar-07 9:44 
GeneralRe: Need advice on display rotation performance from experienced programmers... [modified] Pin
Mark Salsbery7-Mar-07 10:25
Mark Salsbery7-Mar-07 10:25 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Jun Du7-Mar-07 16:38
Jun Du7-Mar-07 16:38 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Jun Du8-Mar-07 5:05
Jun Du8-Mar-07 5:05 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery8-Mar-07 6:06
Mark Salsbery8-Mar-07 6:06 
There's alot of math going on in the loop that could be optimized.

The angle could be kept in radians so it doesn't have to be converted from degrees every
iteration.

The translation value (eDx,eDx in the XFORM struct) maybe doesn't need to be calculated every
iteration.

The m_pDC->ModifyWorldTransform(&xform, MWT_IDENTITY); isn't necessary in the loop.

I know you're using a third-party bitmap format but if it's drawable with GDI then using GDI+
should be trivial and can cut the CPU usage alot.

The video card and driver can influence the performance as well. My machine that I'm testing is
same CPUs/speed with a ATI FireGL V3100 128MB video adapter.

I'm goig to try your code on my machine - I'll report the findings Smile | :)
Mark


"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Jun Du9-Mar-07 3:28
Jun Du9-Mar-07 3:28 
GeneralRe: Need advice on display rotation performance from experienced programmers... Pin
Mark Salsbery9-Mar-07 11:16
Mark Salsbery9-Mar-07 11:16 
QuestionHow to map message in each item of list control? Pin
Max++7-Mar-07 6:24
Max++7-Mar-07 6:24 
AnswerRe: How to map message in each item of list control? Pin
Hamid_RT7-Mar-07 7:01
Hamid_RT7-Mar-07 7:01 
QuestionC++ XML Transform Pin
Andy H7-Mar-07 6:19
Andy H7-Mar-07 6:19 
AnswerRe: C++ XML Transform Pin
Cedric Moonen7-Mar-07 7:20
Cedric Moonen7-Mar-07 7:20 
JokeRe: C++ XML Transform Pin
Maximilien7-Mar-07 7:24
Maximilien7-Mar-07 7:24 
JokeRe: C++ XML Transform Pin
Cedric Moonen7-Mar-07 7:27
Cedric Moonen7-Mar-07 7:27 
GeneralRe: C++ XML Transform Pin
Maximilien7-Mar-07 7:55
Maximilien7-Mar-07 7:55 
GeneralRe: C++ XML Transform Pin
Andy H7-Mar-07 7:54
Andy H7-Mar-07 7:54 
GeneralRe: C++ XML Transform Pin
Cedric Moonen7-Mar-07 10:33
Cedric Moonen7-Mar-07 10:33 
GeneralRe: C++ XML Transform Pin
Andy H7-Mar-07 11:05
Andy H7-Mar-07 11:05 
QuestionHow to get the local time in seconds? Pin
Yonggoo7-Mar-07 5:35
Yonggoo7-Mar-07 5:35 
AnswerRe: How to get the local time in seconds? Pin
led mike7-Mar-07 5:41
led mike7-Mar-07 5:41 
GeneralRe: How to get the local time in seconds? Pin
Yonggoo7-Mar-07 7:21
Yonggoo7-Mar-07 7:21 
GeneralRe: How to get the local time in seconds? Pin
led mike7-Mar-07 7:36
led mike7-Mar-07 7:36 
GeneralRe: How to get the local time in seconds? Pin
Yonggoo7-Mar-07 8:51
Yonggoo7-Mar-07 8:51 

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.