Metal: default cursor animation is now sonicboom

Chosen as the default for tests and demos after trying all eight modes
side by side.  Animations themselves remain opt-in
(g_mtl_animations_enabled / mtl-animations).
This commit is contained in:
Andros Fenollosa 2026-06-04 08:28:55 +02:00
parent ef4beaa362
commit 9ce5065d7a
2 changed files with 6 additions and 4 deletions

View file

@ -90,13 +90,13 @@
;; ---------------------------------------------------------------------------
;; Customizable variables
(defcustom mtl-cursor-animation 'spring
(defcustom mtl-cursor-animation 'sonicboom
"Cursor animation mode for the Metal GPU backend.
Possible values:
`block' Static filled rectangle (no animation)
`spring' Critically-damped spring physics (default)
`spring' Critically-damped spring physics
`torpedo' Trail of last N cursor positions
`sonicboom' Expanding ring when cursor jumps far
`sonicboom' Expanding ring when cursor jumps far (default)
`ripple' Three concentric expanding rings
`pixiedust' Radial particle burst on jump
`hollow' Hollow outline box

View file

@ -255,7 +255,9 @@ static void mtl_color_glyph_cache_clear (void);
static struct gfx_driver mtl_gfx_driver;
/* Phase 4: global animation configuration (Lisp-configurable) */
MtlCursorMode g_mtl_cursor_mode = MTL_CURSOR_SPRING;
/* Sonicboom is the user's pick as the default for tests and demos
(animations themselves stay opt-in behind g_mtl_animations_enabled). */
MtlCursorMode g_mtl_cursor_mode = MTL_CURSOR_SONICBOOM;
MtlScrollEasing g_mtl_scroll_easing = MTL_EASE_OUT_QUAD;
float g_mtl_scroll_duration = 0.15f;
NSUInteger g_mtl_trail_len = 20;