Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
dss1984
dss1984's Profile
2
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Performance issue on firefox
[2 Replies]
16-Jan-2013 10:26 PM
Forum:
Processing with Other Languages
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.
Performance issue on firefox [Processing with pure java script ]
[0 Replies]
16-Jan-2013 10:00 PM
Forum:
Processing with Other Languages
Hi, All
I am modelling a simple demo, a rectangle following the mouse and the code attached.
I have a performance issue on firefox browser.
I found the demo which code with processing code running smoothly.
could anyone give me some suggestions on this, thanks.
var sketchProc = function(processing){
var p = processing, rectObj = {'x':0, 'y':0, 'width':50, 'height':50};
p.mouseMoved = function(){
rectObj['x'] = p.mouseX;
rectObj['y'] = p.mouseY;
p.redraw();
};
p.setup = function(){
p.size(800, 600);
p.noLoop();
};
p.draw = function(){
var date = new Date();
p.background(255);
p.stroke(148);
p.fill(0);
p.rect(rectObj['x'],rectObj['y'], rectObj['width'],rectObj['height']);
console.log('Draw time: ' + (date.getTime() - new Date().getTime()) )
};
}
$(document).ready(function(){
var canvas = document.getElementById("container");
var p = new Processing(canvas, sketchProc);
});
«Prev
Next »
Moderate user : dss1984
Forum