RawInput causes the window to lag severely.

Started by
9 comments, last by krippy2k8 11 years, 7 months ago
Your //Dostuff2 is outside of the main loop, that will never be reached until your message loop completely ends (i.e. the application is closing.)

Do this:


while(!done)
{
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
//Dostuff;
}
//Dostuff2;
}




If that is what you actually have and Dostuff2 is never reached, then you must be doing something within the inner loop to generate new messages.

You may want to post your actual code again

This topic is closed to new replies.

Advertisement