private void Update() { if (_testPause) { if (Ctrl.getTimer() >= _resumeTime) { Ctrl.print("暂停恢复"); _testPause = false; } else { return; } } Ctrl.makeFixDirty(); long now = Ctrl.getTimer(); int dd = (int)(now - _lastTime); _lastTime = now; if (dd > 0) { if ((_dateFixDelayTick -= dd) <= 0) { _dateFixDelayTick = ShineSetting.dateFixDelay; DateControl.makeFixDirty(); } //系统逻辑 SystemControl.onFrame(); //计时器 TimeDriver.instance.tick(dd); } TimeDriver.instance.update(); //线程事务最后执行 if (dd > 0) { //线程 ThreadControl.onFrame(); } }