diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-10 00:44:42 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-10 00:44:42 +0100 |
commit | c980335b5858746772cb7b9588ca709c5d2dfa23 (patch) | |
tree | ba120d14c8aa760062e36392bfccafe63861724e /src/xmalloc.c | |
parent | 72d98fd99f350d2592c63ee6e1ac28cd38fbcb93 (diff) |
Delay second buffer initialisation.
We don't actually need to initialise our second Cairo context / surface
until after the first one has been painted to the screen. This commit
therefore delays this initialisation (or at least the expensive memcpy),
granting a significant reduction in startup time.
The downside is that main() and entry_init() are now tied together
somewhat, but hopefully the comments help.
Diffstat (limited to 'src/xmalloc.c')
0 files changed, 0 insertions, 0 deletions