# Lag!

**URL:** <https://forum.kirupa.com/t/lag/198165>\
**Category:** Uncategorized\
**Created:** [August 22, 2006, 9:39pm UTC](https://forum.kirupa.com/t/lag/198165 "2006-08-22T21:39:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fearkist](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@fearkist](https://forum.kirupa.com/u/fearkist)\
**Post date:** [August 22, 2006, 9:39pm UTC](https://forum.kirupa.com/t/lag/198165/1 "2006-08-22T21:39:45Z")

</div>

Im working on a layout for my site, and I used kirupa’s snow 3.0 script,  
the snow seems to lag quite a bit, you can see it here:  
[http://www.astral-lullaby.net/testyyyyyy.html](http://www.astral-lullaby.net/tricky.swf)

I edited the script a tad bit as I wanted the snow to fall quicker,here it is:

```auto
init = function () {
    width = 300;
    // pixels 
    height = 200;
    // pixels 
    max_snowsize = 10;
    // pixels 
    snowflakes = 30;
    // quantity 
    for (i=0; i<snowflakes; i++) {
        t = attachMovie("snow", "snow"+i, i);
        t._alpha = 20+Math.random()*60;
        t._x = -(width/2)+Math.random()*(1.5*width);
        t._y = -(height/2)+Math.random()*(1.5*height);
        t._xscale = t._yscale=50+Math.random()*(max_snowsize*10);
        t.k = 1+Math.random()*5;
        t.wind = -1.5+Math.random()*(1.4*5);
        t.onEnterFrame = mover;
    }
};
mover = function() {
    this._y += this.k;
    this._x += this.wind;
    if (this._y>height+10) {
        this._y = -20;
    }
    if (this._x>width+20) {
        this._x = -(width/2)+Math.random()*(1.5*width);
        this._y = -20;
    } else if (this._x<-20) {
        this._x = -(width/2)+Math.random()*(1.5*width);
        this._y = -20;
    }
}
init();

```

What can I do?
