【C++】DirectX初心者質問スレ Part8 【D】
■ このスレッドは過去ログ倉庫に格納されています
0461デフォルトの名無しさん
2006/03/25(土) 22:20:52double nextframe = (double)System.Environment.TickCount;
float wait = 1000f/60f;
while(frm.Created)
{
if ((double)System.Environment.TickCount >= nextframe)
{
//計算処理
if ((double)System.Environment.TickCount < nextframe + wait)
{
//描画処理
}
nextframe += wait;
}
Application.DoEvents();
}
最強です。
■ このスレッドは過去ログ倉庫に格納されています