|
@@ -550,11 +550,11 @@ public class PQMovieInput: ImageSource {
|
|
if runBenchmark {
|
|
if runBenchmark {
|
|
let currentFrameTime = (CFAbsoluteTimeGetCurrent() - startTime)
|
|
let currentFrameTime = (CFAbsoluteTimeGetCurrent() - startTime)
|
|
totalFrameTimeDuringCapture += currentFrameTime
|
|
totalFrameTimeDuringCapture += currentFrameTime
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ FilterLog(message: "currentTime is \(String(format: "%.6f", CMTimeGetSeconds(currentTime))) 当前帧渲染时间 : \(String(format: "%.6f",1000.0 * currentFrameTime)) ms Average frame time : \(String(format: "%.6f", 1000.0 * totalFrameTimeDuringCapture / Double(totalFramesSent))) ms totalFrameTimeDuringCapture is \(String(format: "%.6f",totalFrameTimeDuringCapture))")
|
|
|
|
|
|
- FilterLog(message:"currentTime is \(CMTimeGetSeconds(currentTime))")
|
|
|
|
- FilterLog(message:"Average frame time : \(1000.0 * totalFrameTimeDuringCapture / Double(totalFramesSent)) ms")
|
|
|
|
- FilterLog(message:"Current frame time : \(1000.0 * currentFrameTime) ms")
|
|
|
|
- FilterLog(message:"totalFrameTimeDuringCapture is \(totalFrameTimeDuringCapture)")
|
|
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|