Commit Graph
7 Commits
Author SHA1 Message Date
anth64 55fc4958f7 feat: wire fps diagnostics into video present/init
Also fixes frame_budget_ns being left unset when vsync paces
presentation without an explicit sleep (present_fn == present), and
exposes it as skele_frame_budget_ms for reporting alongside the
sleep-based capped path.
2026-08-23 17:44:04 +02:00
anth64 55055a042d feat: add vsync-priority frame pacing to video backends
Present now dispatches through a function pointer chosen at init and
re-chosen by two new runtime setters: real vsync if requested and the
driver grants it, else a manual sleep-based cap (auto-detects display
refresh rate, falls back to 60fps if that can't be queried), else
fully uncapped. skele_video_using_vsync() reports what was actually
granted; skele_video_set_vsync()/skele_video_set_max_fps() let a game
change either live without tearing down the renderer/GL context.
2026-08-23 17:06:33 +02:00
anth64 c4bed2f596 refactor(video/sdl): dedupe scale computation and use calloc for framebuffer 2026-08-19 21:53:18 +02:00
anth64 b1b3596648 feat: add borderless fullscreen option 2026-04-22 22:02:06 +02:00
anth64 04ae96f1b8 fix(video/sdl): expand palette manually to avoid SDL_SetTexturePalette unavailable on FreeBSD 2026-04-20 07:58:12 +02:00
anth64 588ad3e525 refactor: remove unecessary scope block 2026-04-11 21:27:59 -04:00
anth64 5aaecdeac6 initial commit 2026-04-06 13:27:44 -04:00