... 运行调度子系统 run scheduling subsystem; 运行定时 run timing; 运行方式 method of operation; mode of operation; ...
基于14个网页-相关网页
Not only is it difficult to code them correctly, but the timing of finalization is not deterministic, and there is no guarantee that finalizers will ever even run.
终结器不仅难以编写正确,终结的定时也是不确定的,并且不能保证终结器最终会运行。
If you run your benchmarks with -verbose: gc, you can see how much time was spent in garbage collection and adjust your timing data accordingly.
如果用- verbose: gc开关运行评测,您可以看到在垃圾收集上耗费了多少时间,并相应地调整您的计时数据。
An easy solution to the timing issue is to just let the game run on a steady 25 frames per second. The code then looks like this.
计时问题的一个简单解决方法是让游戏固定运行在25帧每秒。
应用推荐