From: Nick Bowler Date: Sat, 24 Dec 2022 05:24:25 +0000 (-0500) Subject: Reimplement xcounter based on pre-rendered pixmpas. X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/bbe659b000e2c281340953c5fc96bd7ac3b94eaa?ds=sidebyside;hp=bbe659b000e2c281340953c5fc96bd7ac3b94eaa Reimplement xcounter based on pre-rendered pixmpas. This alters the xcounter idea, instead of caching XmStrings and doing full-blown font rendering with each update, we can pre-render all the needed strings to a pixmap and stitch them together using XCopyArea. This achieves basically the same visual result but clears are eliminated completely which should further reduce the chances of visible flicker. While we are rejigging this, tune the state structure to be much more focused to the actual usage, preferring fixed limits and compact data representation over dynamic allocation. ---