08/06/21 23:05:50 JUrwHwGu
ループを直接書かずにこんな感じでApplication.Idleイベントを使う方法もあるみたい
Application.Idle += (sender, e) => {
while (!NativeMethods.PeekMessage(out msg, IntPtr.Zero, 0, 0, 0))//DllImportしてくる
描画や更新やウェイト();
}
Application.Run(form);
XNAなんかだとこっちになってるからこっちの方がいいのかも