quakeforge/libs/ui
Bill Currie 058e919273 [renderer] Use better heuristics for scrap allocation
More tuning is needed on the actual splits as it falls over when the
lower rect gets too low for the subrects being allocated. However, the
scrap allocator itself will prefer exact width/height fits with larger
cutoff over inexact cuts with smaller cutoff. Many thanks to tdb for the
suggestions.

Fixes the fps dropping from ~3700fps down to ~450fps (cumulative due to
loss of POT rounding and very poor splitting layout), with a bonus boost
to about 4900fps (all speeds at 800x450). The 2d sprites were mostly ok,
but the lightmaps forming a capital gamma shape in a 4k texture really
hurt. Now the lightmaps are a nice dense bar at the top of the texture,
and 2d sprites are pretty good (slight improvement coming next).
2022-09-20 19:32:49 +09:00
..
test [ui] Move txtbuffer and vrect tests to libs/ui 2021-06-13 14:29:46 +09:00
inputline.c [ui] Create library for UI support code 2021-06-12 22:50:51 +09:00
Makemodule.am [build] Fix some make distcheck issues 2022-05-06 15:50:13 +09:00
txtbuffer.c [ui] Create library for UI support code 2021-06-12 22:50:51 +09:00
view.c [ui] Free the view's children array 2022-05-12 19:58:18 +09:00
vrect.c [renderer] Use better heuristics for scrap allocation 2022-09-20 19:32:49 +09:00