UI: add a preference for the number of samples used for FPS playback

This was hard coded to 8, which can still result in a number that
jitters making the overall FPS difficult to measure.

The default is still 8, but this is now a preference that can be
increased for values that don't jitter as much.
This commit is contained in:
Campbell Barton
2023-08-25 19:22:05 +10:00
parent faff3d1d15
commit b150b47720
8 changed files with 63 additions and 29 deletions
@@ -108,6 +108,7 @@ const UserDef U_default = {
.gp_euclideandist = 2,
.gp_eraser = 25,
.gp_settings = 0,
.playback_fps_samples = 8,
#ifdef __APPLE__
.gpu_backend = GPU_BACKEND_METAL,
#else