Loading...
Logo
Processing Forum
Hi, All

 I am coding a topo network with processing.js.

 If  More than 2000 network nodes,  the performance is badly on firefox when I drag the topo node.

 Please give me some suggestions or resolving this performance issue.

 Thanks in advance.

 I write the code with pure javascript.

Replies(2)

This is similar to the other thread you made, and like the other, I moved it from Programming Questions, as it is a specialized topic.
Just don't expect performance of JavaScript to be the same than Java, even if browser makers made great improvements. Java is statically compiled (better optimizations at compiling) and has a good Just-in-Time compiler.

You might have a better performance in Chrome (v8 JS engine).
Yes, have a better performance in chrome. 

But I found the demo code with java running smoothly. 

Like the demo snake.

But i just put a rectangle and following the mouse's position, the performance it very bad on firefox.

What is the difference between coding with java and js when using processing.js?

Thanks for your reply.