glscene

 

Tips FullScreenFPS

Page history last edited by skinhat 4 yrs ago

How to get FPS in full screen

Most of the coders think that FPS procedures like FramesPerSecond and ResetPerformanceCounter are only the properties of TGLSceneViewer but actually they are the part of TGLSceneViewer.Buffer (TGLSceneBuffer class). As long as TGLFullScreenViewer has this class also, you can access FPS with the following code:

TGLFullScreenViewer.Buffer.FramesPerSecondTGLFullScreenViewer.Buffer.ResetPerformanceMonitor

Comments (0)

You don't have permission to comment on this page.