Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snow function fix #3

Closed
gregdangelo opened this issue Nov 24, 2011 · 3 comments
Closed

Snow function fix #3

gregdangelo opened this issue Nov 24, 2011 · 3 comments
Assignees

Comments

@gregdangelo
Copy link

we added this plugin to our site and it killed FF8 even on high performance machines. updating the snow function fixed that

        function snow(){
            for(var i = flakes.length-1 ; i>=0 ; i--){
                flakes[i].update();
            }
            snowTimeout = setTimeout(function(){snow()}, 50);
        }

longer timeout and cache the flakes array length

@loktar00
Copy link
Owner

How many flakes were you using? Was it just the default amount? Thanks for the info.

@gregdangelo
Copy link
Author

it was set to 150, minsize 3, maxsize 5, with shadows and rounded were turned on

@ghost ghost assigned loktar00 Nov 30, 2011
@loktar00
Copy link
Owner

Going to close this as it seems to work fine on FF now.. granted this is a really old issue. Only performance hit I see now is when there are a lot of flakes with shadows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants