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.3:viewport [2021/02/11 16:27] – [Native OpenGL Rendering] admin0.8.3:viewport [2022/04/06 19:29] – [UseFixedFrameRate] admin
Line 65: Line 65:
 ==== Requesting FrameRate (FPS) ==== ==== Requesting FrameRate (FPS) ====
  
-Currently it is not possible to retrieve an actual frameratebut the TGorillaViewport provides an estimated framerate value.+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.
  
 Simply setup a timer and request those value every 100 milliseconds. Simply setup a timer and request those value every 100 milliseconds.
Line 82: Line 83:
 Animation-Framerate (TAnimation): Because skin- and skeleton animation extends basic Firemonkey TAnimation. Therefore animations are limited to 30 FPS for rendering. Animation-Framerate (TAnimation): Because skin- and skeleton animation extends basic Firemonkey TAnimation. Therefore animations are limited to 30 FPS for rendering.
 ==== UseFixedFrameRate ==== ==== UseFixedFrameRate ====
 +
 +The viewport is able to render a scene on event feedback if visual component change or by a fixed framerate interval.
 +If UseFixedFrameRate is set to true, the rendering pipeline tries to render the scene with the configured FixedFrameRate value.
 +By default this value is set to 60.
 +
 +Notice: At design-time fixed framerate rendering is disabled due to limitations in IDE.
  
 ===== FrustumCulling ===== ===== FrustumCulling =====