PDA

View Full Version : JS Efficiency - Conceptual Stuff


Beck
02-14-2003, 12:05 AM
I was just wondering if anyone recommended any links to websites discussing javascript efficiency and ways to make the scripts go faster. I am creating a video game that involves so many collision checks that it's just ridiculous: the browser is starting to drag. True, it's forcing me to be clever. But I'd like to understanding the "compilation" process (javascript is actually not compiled, I've heard) to better determine my strategies.

Any thoughts would also be very welcome.

Now I just cross my fingers and hope/pray that at least one person doesn't just skip this posting..... hee hee

RoyW
02-14-2003, 02:42 AM
Try http://www.javascript-games.org/
There are tons of javascript games that you can look at and maybe get some ideas from.

They also have a tutorial on how to create games in javascript.

Beck
02-14-2003, 02:46 AM
thanks huge!

joh6nn
02-14-2003, 03:43 AM
just some notes on code optimization in general, but you can apply a lot of it to javascript: http://www.digitalmars.com/ctg/ctgOptimizer.html