# Expected speed of WGLMakie

**URL:** <https://discourse.julialang.org/t/expected-speed-of-wglmakie/53673>\
**Category:** Visualization\
**Created:** [January 20, 2021, 3:24pm UTC](https://discourse.julialang.org/t/expected-speed-of-wglmakie/53673 "2021-01-20T15:24:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [January 20, 2021, 3:24pm UTC](https://discourse.julialang.org/t/expected-speed-of-wglmakie/53673/1 "2021-01-20T15:24:38Z")

</div>

Hi,

I wonder what is the expected speed of WGLMakie compared to GLMakie. The following MWE takes 20s with WGLMakie compared to 0.8s using GLMakie.  
Is is expected ? Could someone explain the difference ?

> **MWE**
>
> ```julia
> using GLMakie,AbstractPlotting
> function MWE()
> scene = Scene()
> nh=50
> nx=200
> ny=200
> xs = LinRange(0, 10.0, nx)
> ys = LinRange(0, 15.0, ny)
> 
> zs=zeros(nx,ny)
> 
> function updatezs!(t)
> for j in eachindex(ys)
> for i in eachindex(xs)
> zs[i,j] = cos(xs[i]+t) * sin(ys[j]+2t)
> end
> end
> end
> 
> zn = Node(zs)
> # heatmap!(scene,xs,ys,lift(z->z,zn),camera = cam2d!)
> surface!(scene,xs, ys, lift(z->z,zn),camera = cam3d!)
> display(scene)
> t=0
> for j in 1:nh
> t+=0.1
> updatezs!(t)
> sleep(0.01)
> zn[] = zs 
> yield()
> end
> end 
> 
> ```

In addition, the GLMakie plots are prettier…

 ![WGLMakie](https://global.discourse-cdn.com/julialang/original/3X/a/f/afe05a2b1af619dff563503d0bb8cb5eeaa1e573.jpeg) ![GLMakie](https://global.discourse-cdn.com/julialang/original/3X/7/c/7c33280ff6971a4de952b9635818bddd44c4e5b8.jpeg)

Thanks
