diff options
author | Aurélien Aptel | 2012-01-21 23:14:41 +0100 |
---|---|---|
committer | Aurélien Aptel | 2012-01-21 23:14:41 +0100 |
commit | 896310e5928b6daab5f594acd9648ffe8233022e (patch) | |
tree | 5f76ce8a7e3090c7e88edeb155f5e5755faebf4e /TODO | |
parent | 13a8eeb810ccfdaefd58c52328dd0ec867e3ae8d (diff) | |
download | st-896310e5928b6daab5f594acd9648ffe8233022e.tar.gz st-896310e5928b6daab5f594acd9648ffe8233022e.tar.xz st-896310e5928b6daab5f594acd9648ffe8233022e.zip |
copy dirty lines to screen, add select() timeout & min time between draw() calls.
* add a timeout value (SELECT_TIMEOUT) of 20ms in the select() call
* wait at least 20ms (DRAW_TIMEOUT) between draw() calls
* only copy dirty lines from the buffer to the screen
what draw() does:
* clears dirty lines in the buffer
* draws the longest same-attributes string of each
dirty line to the buffer with multiple xdraws() call
* copies the current dirty line from buffer to the screen with a single
xcopy() call
this changeset makes st run ~10x faster.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions