summaryrefslogtreecommitdiff
path: root/libdecor
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-06-22 16:30:21 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-06-22 16:46:44 +0200
commit088d98389cdc4c0ed38d05e4a8e59fab88198515 (patch)
tree3190a8cc102a0cbcf91d668487b8130aa79b63f8 /libdecor
parentacd77fa8dc415a32b7a33996b5b01b10a69c2463 (diff)
Improve threads demo test/threads.cxx (#1263)
- Replace Fl_Browser with Fl_Terminal which uses a constant buffer size - Don't lock the GUI for every single prime. Collect primes for at least 0.25 seconds before calling Fl::awake(handler, buffer) - Use (two) alternate buffers for collecting prime data. - Use Fl::lock() *only* to protect thread data at initialization time. Observation on Debian 12, CPU: 12-core, 12th Gen Intel Core i7-1260P: speedup > factor 4, using multiple cores, GUI fully functional: scrolling the display, resizing, ... Tested natively (X11 + Wayland) and cross-compiled for Windows, using `wine`.
Diffstat (limited to 'libdecor')
0 files changed, 0 insertions, 0 deletions