xo-imgui: support dynamic vsync_enabled setting + demo in ex4

This commit is contained in:
Roland Conybeare 2025-11-12 13:33:20 -05:00
commit b4a8ecd7d6
5 changed files with 58 additions and 14 deletions

View file

@ -85,6 +85,8 @@ struct DrawState {
public:
/** when true display imgui demo window **/
bool show_demo_window_ = false;
/** whether vsync feature enabled (throttle to ~60 fps) **/
bool vsync_enabled_ = true;
draw_state_type state_type_ = draw_state_type::alloc;