⛊ 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.
Cheese Posted January 22, 2012 Report Posted January 22, 2012 pretty awesome SSC Distension OwnerSSCU Trench Wars Developer3:JabJabJab> sometimes i feel like when im in this mood im like a productive form of CheeseDr Brain> Pretty much everything you said was wrong. Except where you called me a lazy jerk with no time. That was true.3:KrynetiX> do you ever open your web browser and type ?go google5:Ceiu> Wow. My colon decided that was a good time to evacuate itself.
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
⛊ 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
🜲 Samapico Posted January 24, 2012 Report Posted January 24, 2012 Red is kicking Blue's ass so hard http://upload.wikimedia.org/wikipedia/commons/thumb/8/88/Half-Life_Black_Mesa_logo.svg/120px-Half-Life_Black_Mesa_logo.svg.pngDCME co-developerSSCU 17th Parallel sysop
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now