Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
0.8.4:viewport [2022/05/03 12:48] – [Requesting FrameRate (FPS)] admin0.8.4:viewport [2022/05/03 12:50] – [Requesting FrameRate (FPS)] admin
Line 65: Line 65:
 ==== Requesting FrameRate (FPS) ==== ==== Requesting FrameRate (FPS) ====
  
-If UseFixedFrameRate is set to true, the FPS property returns the current frames per second. +  * If //UseFixedFrameRate// is set to TRUE, the FPS property returns the current frames per second. 
-If UseFixedFrameRate is set to false, the TGorillaViewport provides an estimated framerate value.+  If //UseFixedFrameRate// is set to FALSE, the TGorillaViewport provides an estimated framerate value.
  
 Simply setup a timer and request this value every 100 milliseconds. Simply setup a timer and request this value every 100 milliseconds.
Line 78: Line 78:
  
 === Notice === === Notice ===
 +
 +If //UseFixedFrameRate// is set to FALSE the //FPS// property provides an estimated framerate.
 +
 The estimated framerate measures the time a complete render cycle needs, including all objects, render passes and the main pass itself. The estimated framerate measures the time a complete render cycle needs, including all objects, render passes and the main pass itself.
 Based on this value we compute the **possible frames per second** for the last interval. So Gorilla3D FPS value is only an orientation for you and the possible performance of your application. Based on this value we compute the **possible frames per second** for the last interval. So Gorilla3D FPS value is only an orientation for you and the possible performance of your application.