SavanVaghela / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Canvas for Visualization too laggy #131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On my computer (Core i5, Linux, Java 1.6.0_20, Firefox), the new visualization 
takes me a whole processor (100%) and it's even laggy most of the time (not at 
the beginning but when there are a lot of fleets).

I had no problem with the old one. (but it was ugly compare to the new one)

Original issue reported on code.google.com by Maxim...@gmail.com on 12 Sep 2010 at 12:04

GoogleCodeExporter commented 8 years ago
When I posted this, I did not noticed that it was a JS visualizer now. So with 
Firefox 3.6 (Linux), it's using 100% of one of my processor. Same on another 
computer (core 2 duo). JIT is enabled.

Original comment by Maxim...@gmail.com on 14 Sep 2010 at 7:20

GoogleCodeExporter commented 8 years ago
I tried on Windows and it's working great :/. I don't understand.

Original comment by Maxim...@gmail.com on 17 Sep 2010 at 2:44

GoogleCodeExporter commented 8 years ago
Try Firefox 4 beta?

Original comment by danie...@gmail.com on 20 Sep 2010 at 12:29

GoogleCodeExporter commented 8 years ago
I tried Firefox 4 beta, it's better but still use 100% of my processor and when 
there are too many fleets it's still slow.
It's working great with Chromium but using a second browser just for ia-contest 
is not a good solution for me.

Original comment by Maxim...@gmail.com on 20 Sep 2010 at 12:40

GoogleCodeExporter commented 8 years ago
What battle are you visualizing?

Original comment by danie...@gmail.com on 20 Sep 2010 at 1:56

GoogleCodeExporter commented 8 years ago
I have the problem for almost every battle.

Original comment by Maxim...@gmail.com on 20 Sep 2010 at 2:52

GoogleCodeExporter commented 8 years ago
An option to revert back to the Java visualizer could fix the problem.  
Alternatively, a way of limiting the framerate or skipping frames in the Canvas 
visualizer would be ideal I think.

Original comment by Euphora...@gmail.com on 23 Sep 2010 at 9:50