Drake7707 Posted January 22, 2012 Report Posted January 22, 2012 I had some fun writing stuff in javascript, because I found my background too static: http://dwight.skyon....efault&p=Battle As it turns out, jquery sucks in terms of performance. Quote
JoWie Posted January 22, 2012 Report Posted January 22, 2012 Yea seems like the jquery animations are causing some slow downs (try "jQuery.fx.off = true" in the console) Have you tried using bla(); function bla() { try { // ... } finally { setTimeout(bla, 25); } } instead of setInterval? Canvas would probably speed things up too Quote
Drake7707 Posted January 23, 2012 Author Report Posted January 23, 2012 Well I removed most of the jquery, in particular the .css() to set the div's position etc and swapped to standard javascript setAttribute it ran 100 times faster, so yeah, don't use jquery about 1000 times each 25ms Quote
Samapico Posted January 24, 2012 Report Posted January 24, 2012 Red is kicking Blue's ass so hard Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.