Galapagos icon indicating copy to clipboard operation
Galapagos copied to clipboard

Use WebGL instead of just plain canvas drawing

Open TheBizzle opened this issue 10 years ago • 3 comments

As I discussed recently with @skorlir and @qiemem, WebGL would, in many ways, be a preferable technology to use for the NetLogo View, since WebGL would use the machine's GPU efficiently and be very fast, as well as also providing nicer ways of doing some of the odd graphical things that we need to do in the View (e.g. using follow to keep a particular turtle in the center of the View while still respecting the wrapping of the topology).

However, I am currently considering this issue to be of low priority. It definitely should not be included in the 1.0 release. Right now, I think that we should hold off on it, because (a) it is a major change, and (b) I feel that browsers have not been supporting WebGL well for long enough that we can reasonably expect 90+% of our users to be able to run this with correct behavior and without them having to manually enable WebGL. Let's give this one some more time before acting on it.

TheBizzle avatar Feb 27 '15 17:02 TheBizzle

Have you taken a look at pixijs? http://www.pixijs.com

We used this in our Lab framework and it made a huge difference in being able to run well on tablets and even faster on desktops.

ddamelin avatar Feb 27 '15 18:02 ddamelin

Thanks for the tip! I remember when it first came out and thought it looked cool, but haven't looked into it since. Good to know it's performant!

qiemem avatar Feb 27 '15 18:02 qiemem

We are using Pixi.js at McGraw-Hill Education as well.

SethTisue avatar Mar 09 '15 14:03 SethTisue