Click here to Skip to main content
15,887,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating TCP/IP Port programatically Pin
msr_codeproject14-Feb-11 23:58
msr_codeproject14-Feb-11 23:58 
GeneralRe: Creating TCP/IP Port programatically Pin
ShilpiP15-Feb-11 0:37
ShilpiP15-Feb-11 0:37 
GeneralRe: Creating TCP/IP Port programatically Pin
msr_codeproject16-Feb-11 0:20
msr_codeproject16-Feb-11 0:20 
GeneralRe: Creating TCP/IP Port programatically Pin
ShilpiP16-Feb-11 0:29
ShilpiP16-Feb-11 0:29 
GeneralRe: Creating TCP/IP Port programatically [modified] Pin
msr_codeproject16-Feb-11 1:57
msr_codeproject16-Feb-11 1:57 
QuestionHow to reduce CPU uages with Opengl ? Pin
GAJERA13-Feb-11 19:36
GAJERA13-Feb-11 19:36 
AnswerRe: How to reduce CPU uages with Opengl ? Pin
Emilio Garavaglia14-Feb-11 9:03
Emilio Garavaglia14-Feb-11 9:03 
AnswerRe: How to reduce CPU uages with Opengl ? Pin
Cedric Moonen14-Feb-11 20:26
Cedric Moonen14-Feb-11 20:26 
GAJERA wrote:
but it is using the CPU around 50%.


How does your main loop looks like ? I am guessing that you have a continuous loop without any sleep and that your program runs on a double core. In that case what happens is that your loop will be executed continuously and you will probably get a very high framerate. If you can live with a lower (and fixed) framerate, you can simply execute your drawing code every x msec (choose an appropriate time interval between two frames). The rest of the time, your program should sleep (well in fact wait for user events). You can find more info in one of my articles here[^]
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

QuestionNow I know why people use makefiles Pin
Craig Longman13-Feb-11 17:37
Craig Longman13-Feb-11 17:37 
GeneralRe: Now I know why people use makefiles Pin
Richard MacCutchan13-Feb-11 22:31
mveRichard MacCutchan13-Feb-11 22:31 
GeneralRe: Now I know why people use makefiles Pin
Craig Longman14-Feb-11 2:54
Craig Longman14-Feb-11 2:54 
GeneralRe: Now I know why people use makefiles Pin
Richard MacCutchan14-Feb-11 5:01
mveRichard MacCutchan14-Feb-11 5:01 
GeneralRe: Now I know why people use makefiles Pin
Craig Longman14-Feb-11 13:01
Craig Longman14-Feb-11 13:01 
AnswerRe: Now I know why people use makefiles Pin
Joe Woodbury14-Feb-11 12:34
professionalJoe Woodbury14-Feb-11 12:34 
QuestionNested structs problem [modified] Pin
manchukuo13-Feb-11 10:07
manchukuo13-Feb-11 10:07 
AnswerRe: Nested structs problem [modified] Pin
Richard MacCutchan13-Feb-11 10:39
mveRichard MacCutchan13-Feb-11 10:39 
GeneralRe: Nested structs problem Pin
manchukuo13-Feb-11 10:58
manchukuo13-Feb-11 10:58 
GeneralRe: Nested structs problem Pin
Richard MacCutchan13-Feb-11 11:40
mveRichard MacCutchan13-Feb-11 11:40 
AnswerRe: Nested structs problem Pin
Luc Pattyn13-Feb-11 11:05
sitebuilderLuc Pattyn13-Feb-11 11:05 
GeneralRe: Nested structs problem Pin
manchukuo13-Feb-11 11:08
manchukuo13-Feb-11 11:08 
AnswerRe: Nested structs problem Pin
Luc Pattyn13-Feb-11 11:11
sitebuilderLuc Pattyn13-Feb-11 11:11 
AnswerRe: Nested structs problem Pin
Niklas L13-Feb-11 11:24
Niklas L13-Feb-11 11:24 
GeneralRe: Nested structs problem Pin
Richard MacCutchan13-Feb-11 11:41
mveRichard MacCutchan13-Feb-11 11:41 
GeneralRe: Nested structs problem [modified] Pin
Niklas L13-Feb-11 11:52
Niklas L13-Feb-11 11:52 
GeneralRe: Nested structs problem Pin
manchukuo13-Feb-11 12:39
manchukuo13-Feb-11 12:39 

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.