xo-imgui: restore opengl + vulkan builds

This commit is contained in:
Roland Conybeare 2025-09-23 00:53:31 -04:00
commit d9aa1ddc81
15 changed files with 202 additions and 194 deletions

View file

@ -884,7 +884,7 @@ write_gc_history_tooltip(gc_history_headline headline,
{
xo::flatstring<512> retval;
xo::flatstring<512> headline_str;
xo::flatstring<256> headline_str;
switch (headline) {
case gc_history_headline::survive:
snprintf(headline_str.data(), headline_str.capacity(),
@ -921,10 +921,8 @@ write_gc_history_tooltip(gc_history_headline headline,
break;
}
snprintf(retval.data(), retval.capacity(),
"%s\n"
"%.*s\n"
"\n"
" gcseq: %lu\n"
" type: %s\n"
@ -937,7 +935,7 @@ write_gc_history_tooltip(gc_history_headline headline,
" garbage\u2099: %lu\n" /*garbageN*/
" effort: %lu dt: %.1lfus\n"
" copy efficiency: %.1lf%% collection rate: %.0lf bytes/sec",
headline_str.c_str(),
static_cast<int>(headline_str.capacity()), headline_str.c_str(),
stats.gc_seq_,
(stats.upto_ == generation::nursery) ? "incremental" : "FULL",
stats.new_alloc_z_,