mirror of
https://github.com/fltk/fltk.git
synced 2026-05-16 14:08:23 +08:00
5160567728be407ef83445601f4da19b4e5b5bee
The old version was "synchronized" by calling Fl::check() in a loop which resulted in the highest speed possible on any platform. It turned out that this was way too fast on the Wayland platform as `valerius` posted on IRC/Matrix on Nov 30, 2024. Citation: "anyone else notice the cube demo on Wayland is mega ultra hyper speed?". I took the opportunity to change the demo to use a timer with a given frame rate (see constant 'FPS') to synchronize drawing. Note: the 'speed' slider is independent of the drawing frequency. Finally this commit adds statistics output when the 'Stats / Exit' button is pressed like Iterations = 304, runtime = 12.167 sec, fps = 24.99, requested: 25 with the requested frame rate (default = 25) and allows the user to continue to see more statistics. To do (very likely not in 1.4.x): 1. integrate running statistics in the display 2. make the desired frame rate variable at runtime (new slider)
…
…
…
…
…
README - Fast Light Tool Kit (FLTK) Version 1.4.0
WHAT IS FLTK?
The Fast Light Tool Kit is a cross-platform C++ GUI toolkit for
UNIX®/Linux® (X11 or Wayland), Microsoft® Windows®, and macOS®.
FLTK provides modern GUI functionality without bloat and
supports 3D graphics via OpenGL® and its built-in GLUT
emulation. It was originally developed by Mr. Bill Spitzak
and is currently maintained by a small group of developers
across the world with a central repository on GitHub.
https://www.fltk.org/
https://github.com/fltk/fltk/
For more information see README.txt:
https://github.com/fltk/fltk/blob/master/README.txt
Description
FLTK - Fast Light Tool Kit - https://github.com/fltk/fltk - cross platform GUI development
Languages
C++
52.6%
C
41.9%
Objective-C++
1.8%
Roff
1.8%
CMake
1.4%
Other
0.4%