You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
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 ?
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…
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 ?
In addition, the GLMakie plots are prettier…
The text was updated successfully, but these errors were encountered: