GLMakie: recording a movie without displaying intermediate frames?

Hi,

I would like to use GLMakie on a remote machine without exporting a display. Note that I was not able to use WGLMakie because of speed issue neither CairoMakie because these are 3D plots.

Is it possible to record a movie with GLMakie without displaying the intermediate frames ?

MWE
   using GLMakie,AbstractPlotting
   function MWE()
        scene = Scene()
        nh,nx,ny = 50,200,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)
        surface!(scene,xs, ys, lift(z->z,zn),camera = cam3d!)
        GLMakie.record(scene, "output.mp4", 1:nh, framerate=15) do j
            t=j*0.1
            updatezs!(t)
            zn[] = zs 
        end
    end
    MWE()

Thank you for your help.

Can you describe your problem a bit better? Did you already get GLMakie running on the remote machine? Does the Machine have a GPU? The problem is more about that, than creating a video without displaying frames. Basically, in OpenGL, even off-screen rendering acts like you’d open a window, but it’s not a problem since you can do that on a remote machine…