sketch icon indicating copy to clipboard operation
sketch copied to clipboard

batch wx operations

Open tverlaan opened this issue 2 years ago • 0 comments

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 :-)

tverlaan avatar Jun 14 '22 19:06 tverlaan