Yesterday my program was running fine. But when I launched it today (without changing anything) my fps was 35.4 instead of a constant 60. So when I looked at cpu usage one core was at 100%, why does my game loop suddenly starts hogging my cpu? (NOTE: I also tried another project with EXACTLY the same game loop and it does not happen)
Here is my game loop:
while(Running)
{
PeekMessage(&msg,NULL,0,0,PM_REMOVE);
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
switch(msg.message)
{
case WM_QUIT:
Running = false;
break;
case WM_INPUT:
//Working on this one
break;
}
Render(WIDTH,HEIGHT);
}
Its very weird my loop suddenly started doing this. The exact same loop does not do this in another project like I said.

New Topic/Question
Reply




MultiQuote







|