Ok, this is as basic as it gets. I'm just trying to write a simple game, but I'm not suing XNA or any other game library for it at the moment. I'm simply trying to do the following:
At the end of the constructor:
while (gameState != EXITING)
{
update();
}
In update:
if (DateTime.Now - lastUpdate >= updateFreq)
{
/...process
this.Refresh();
Application.DoEvents();
lastUpdate = DateTime.Now;
while (DateTime.Now - lastUpdate >= updateFreq) {}
}
And I override OnPaint.
It calls all of the logic, but never gets to OnPaint... So what am I screwing up?