# Animate Plot with Many Frames Quickly with Makie

**URL:** <https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [August 1, 2020, 4:56pm UTC](https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094 "2020-08-01T16:56:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [August 3, 2020, 9:17am UTC](https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094/3 "2020-08-03T09:17:27Z")

</div>

Oh, this seems to be a pretty big regression…  
Try:

```julia

N = 1000
r = [(rand(5000, 2) .- 0.5) .* 25 for i = 1:N]
scene = scatter(r[1][:, 1], r[1][:, 2], markersize = 1, limits = FRect(-25/2, -25/2, 25, 25))
s = scene[end] # last plot in scene
GLMakie.WINDOW_CONFIG.vsync[] = false
record(scene, "test.gif", r) do m
    s[1] = m[:, 1]
    s[2] = m[:, 2]
end

```

> Is there a similar option to turn the display off with `Makie` ?

That wouldn’t make a difference with GLMakie.

Btw, you should best use an array of points!

```julia
N = 1000
r = [(rand(Point2f0, 5000) .- 0.5) .* 25 for i = 1:N]
scene = scatter(r[1], markersize = 1, limits = FRect(-25/2, -25/2, 25, 25))
s = scene[end] # last plot in scene
record(scene, "output.mp4", r) do m
    s[1] = m
end

```

---

_[View the full topic](https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094)._
