sketch
sketch copied to clipboard
batch wx operations
I was playing with this and was annoyed by wx not always rendering. I've grepped and browsed through the OTP source and found it was frequently using wx:batch/1
. By batching the operations we block the wx server thread and ensure we always receive the handle_sync_event/3 callback. At least it now always renders directly in my testing :-)