private void Update() { if (videoCapture.IsPlay()) { var v = Time.deltaTime; elapsedMeasurementSec += v; fpsMeasurementSec += v; //if (elapsedMeasurementSec > waitSec) { UpdateVNectModel(); if (fpsMeasurementSec >= 1f) { FPS = (float)fpsCounter / fpsMeasurementSec; fpsCounter = 0; fpsMeasurementSec = 0f; } elapsedMeasurementSec = 0f; } } }