Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dll problem Pin
sashoalm28-Jul-08 22:46
sashoalm28-Jul-08 22:46 
AnswerRe: dll problem Pin
Mark Salsbery29-Jul-08 7:00
Mark Salsbery29-Jul-08 7:00 
QuestionOnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 15:25
ccaprani28-Jul-08 15:25 
AnswerRe: OnDraw() & Timer animation problem Pin
Luc Pattyn28-Jul-08 16:23
sitebuilderLuc Pattyn28-Jul-08 16:23 
GeneralRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 16:43
ccaprani28-Jul-08 16:43 
GeneralRe: OnDraw() & Timer animation problem Pin
Luc Pattyn28-Jul-08 17:08
sitebuilderLuc Pattyn28-Jul-08 17:08 
GeneralRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 17:31
ccaprani28-Jul-08 17:31 
GeneralRe: OnDraw() & Timer animation problem Pin
Luc Pattyn28-Jul-08 17:38
sitebuilderLuc Pattyn28-Jul-08 17:38 
Hi,

I will try and read these tomorrow, it is getting late now.
Anyway, I feel threads could be useful, but they do not fundamentally solve the problem.
First thing to do is figure out what you want to achieve, i.e. which kind of game loop.
Then threads may or may not be the right choice.

If you do game updating in one thread, and screen updating in another, then that simplifies
the code development, since two important parts got decoupled but that is only true
at first sight, since:
- you have to pass game state to the paint routines (easily solved by copying the state);
- you have to decide which thread gets which part of the CPU cycles. Hence back to the fundamental
questions in the white-on-black article.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 17:40
ccaprani28-Jul-08 17:40 
AnswerRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 18:50
ccaprani28-Jul-08 18:50 
QuestionHow to pass a wstring value to a string pointer [modified] Pin
monsieur_jj28-Jul-08 15:06
monsieur_jj28-Jul-08 15:06 
AnswerRe: How to pass a wstring value to a string pointer Pin
Mark Salsbery28-Jul-08 16:14
Mark Salsbery28-Jul-08 16:14 
AnswerRe: How to pass a wstring value to a string pointer Pin
Jijo.Raj28-Jul-08 17:16
Jijo.Raj28-Jul-08 17:16 
QuestionOwnerdraw a Dialog Pin
KellyR28-Jul-08 13:32
KellyR28-Jul-08 13:32 
AnswerRe: Ownerdraw a Dialog Pin
Stephen Hewitt28-Jul-08 14:21
Stephen Hewitt28-Jul-08 14:21 
QuestionRe: Ownerdraw a Dialog [modified] Pin
KellyR28-Jul-08 14:59
KellyR28-Jul-08 14:59 
AnswerRe: Ownerdraw a Dialog Pin
Stephen Hewitt28-Jul-08 15:09
Stephen Hewitt28-Jul-08 15:09 
AnswerRe: Ownerdraw a Dialog Pin
KellyR28-Jul-08 15:23
KellyR28-Jul-08 15:23 
QuestionEfficient Object Management Pin
Ehsan Baghaki28-Jul-08 10:39
Ehsan Baghaki28-Jul-08 10:39 
AnswerRe: Efficient Object Management Pin
Cedric Moonen28-Jul-08 20:27
Cedric Moonen28-Jul-08 20:27 
GeneralRe: Efficient Object Management Pin
Ehsan Baghaki29-Jul-08 1:05
Ehsan Baghaki29-Jul-08 1:05 
Questionbaudrate and other serial communication parameters Pin
hariakuthota28-Jul-08 9:36
hariakuthota28-Jul-08 9:36 
AnswerRe: baudrate and other serial communication parameters Pin
Joe Woodbury28-Jul-08 10:11
professionalJoe Woodbury28-Jul-08 10:11 
QuestionRe: baudrate and other serial communication parameters Pin
Luc Pattyn28-Jul-08 10:32
sitebuilderLuc Pattyn28-Jul-08 10:32 
AnswerRe: baudrate and other serial communication parameters Pin
hariakuthota28-Jul-08 18:18
hariakuthota28-Jul-08 18:18 

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.