These are chat archives for jheinen/GR.jl

2nd
Aug 2016
Tom Breloff
@tbreloff
Aug 02 2016 19:51
@jheinen is there any way to "draw to a buffer" in GR to do double-buffering?
i'm trying to redraw in semi-real-time, and there's a lot of screen flickering... would be really nice if i could draw to an offscreen buffer and then update the screen in one go
Josef Heinen
@jheinen
Aug 02 2016 20:22
@tbreloff , ENV["GKS_DOUBLE_BUF"]="true" 😀
Tom Breloff
@tbreloff
Aug 02 2016 20:26
:tada: @jheinen my hero!
Josef Heinen
@jheinen
Aug 02 2016 20:34
@tbreloff ... a candidate for a kwarg to gr() ?
Tom Breloff
@tbreloff
Aug 02 2016 20:34
is there ever a reason NOT to have this?
Josef Heinen
@jheinen
Aug 02 2016 20:38
... not for Linux or Windows.
Tom Breloff
@tbreloff
Aug 02 2016 20:40
no OSX?
Josef Heinen
@jheinen
Aug 02 2016 20:40
macOS doesn't need this flag
Tom Breloff
@tbreloff
Aug 02 2016 20:41
do you want to change the default in GR? any reason not to?
Josef Heinen
@jheinen
Aug 02 2016 20:43
the workstation updates might be deferred, if double buffering is set
users who create their plots piece by piece might complain ...
I think it should be explicitely set for real-time graphics only
Tom Breloff
@tbreloff
Aug 02 2016 20:59
ok i'll add this to Plots only then