Files
Roman ChojnackiandClaude Opus 5.5 66129d3bc7 Atlas: each font opened once, kept for later windows; DPI, Retina and portal fixes
- The atlas bake opens each font file once instead of once per size:
  36.8 ms to 18.5 ms per bake, byte-identical output. A threaded bake
  was faster still but kept 0.5-1.1 MB the heap never returned.
- The first window after the main one keeps its atlas image and glyph
  tables; later windows and menus copy them instead of baking (about
  11 ms to 0.3 ms each). Freed when the main window rebakes or quits.
- The first window is sized by the primary display's content scale;
  reaktor_dpi_query_scale(NULL) always answered 1.0.
- Windows opened with reaktor_window_open are sized in window
  coordinates, as popups already were, so a Retina Mac no longer
  doubles them.
- Linux reads the portal's settings in one ReadAll call and stops asking
  only when there is no portal or no ReadAll; reaktor_prefers() replaces
  the two preference queries.
- The a11y tree finds a node through its hash index; sRGB to linear is a
  table; a box reads its style once; the locale scan is one pass.
- PERFORMANCE.md, the chart and the README remeasured for Reaktor.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-24 16:33:23 +02:00

12 lines
232 B
C

#ifndef REAKTOR_THEME_H
#define REAKTOR_THEME_H
int reaktor_prefers_dark(void);
void reaktor_prefers(int *reduced_motion, int *contrast);
struct SDL_Window;
void reaktor_window_set_dark(struct SDL_Window *win, int dark);
#endif