g3n / g3nd

G3N Game Engine Demo
BSD 2-Clause "Simplified" License
281 stars 31 forks source link

"-interval 0" no longer exists? #11

Closed justinclift closed 6 years ago

justinclift commented 6 years ago

The README.md presently mentions using g3nd with -interval 0 as a way to measure the maximum FPS:

To check the maximum FPS rate (frames per second) of your system for any demo, run G3ND with the option -interval 0.

g3nd doesn't recognise the option though, instead displaying and error and standard known flags list:

$ g3nd -interval 0 geometry.box
flag provided but not defined: -interval
G3N Demo v0.5
usage: g3nd [options] [<test>] 
  -cpuprofile string
        Activate cpu profiling writing profile to the specified file
  -exectrace string
        Activate execution tracer writing data to the specified file
  -fullscreen
        Starts application with full screen
  -hidefps
        Do now show calculated FPS in the GUI
  -logs string
        Set log levels for packages. Ex: gui:debug,gls:info
  -noglerrors
        Do not check OpenGL errors at each call (may increase FPS)
  -nogui
        Do not show the GUI, only the specified demo
  -renderstats
        Shows gui renderer statistics in the console
  -stats
        Shows statistics control panel in the GUI
  -swapinterval int
        Sets the swap buffers interval to this value (default -1)
  -targetfps uint
        Sets the frame rate in frames per second (default 60)
  -updatefps uint
        Time interval in milliseconds to update the FPS in the GUI (default 1000)

Guessing the option has been renamed or something. :wink: The README.md should probably be updated to match.

leonsal commented 6 years ago

It was renamed to `-swapinterval' . The new README.md reflects this change.

justinclift commented 6 years ago

Thanks @leonsal. :smile: