Class FPSLogger


  • public class FPSLogger
    extends java.lang.Object
    A simple helper class to log the frames per seconds achieved. Just invoke the log() method in your rendering method. The output will be logged once per second.
    • Constructor Summary

      Constructors 
      Constructor Description
      FPSLogger()  
      FPSLogger​(int bound)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log()
      Logs the current frames per second to the console.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FPSLogger

        public FPSLogger()
      • FPSLogger

        public FPSLogger​(int bound)
        Parameters:
        bound - only logs when they frames per second are less than the bound
    • Method Detail

      • log

        public void log()
        Logs the current frames per second to the console.