solutionspolew.blogg.se

Unity c++ source code
Unity c++ source code








The simplest way to start controlling frame rate is to explicitly set the QualitySettings.vSyncCount so that rendering will occur at an interval related to the display device's refresh rate (e.g., for a 60Hz display, setting vSyncCount=2 will cause Unity to render at 30fps in sync with the display). Frames will be rendered as quickly as they can while generally being limited by your display device's refresh rate (see V Sync Count). Normally, out of the box, a Unity project will attempt to run your project as fast as possible. This can be vital in an environment like a broadcast studio where synchronization between Unity and other equipment is crucial. Ever wonder if it's possible to make Unity follow a precise frame rate and potentially even follow an external clock source (commonly known as genlock)? This post will discuss how Unity natively maintains frame rates and how user code can be added to tightly control it.










Unity c++ source code