摘要: // A FPS counter.// It calculates frames/second over each updateInterval,// so the display does not keep changing wildly.var updateInterval = 0.5;private var lastInterval : double; // Last interval end timeprivate var frames = 0; // Frames over current intervalprivate var fps : float; // Current FPS 阅读全文
posted @ 2011-08-05 10:31 softimagewht 阅读(445) 评论(3) 推荐(0)