
Thoughts?
Gold said:
Not sure if drawings from the drawing tools could ever slow it down. I think it might slow it down if you put a lot, like tons of walls and barrels and rivers all across 100x100 just drawn with the tools in Roll20. At that point I think it would be good to erase some of the lines in the sections of the map that you aren't using, or draw it in a graphics program and save-it down as one big JPEG.
With the exception of the freehand tool, drawings are extremely lightweight. A circle/oval, for example, is being generated from 13 points. Squares/rectangles have 5 points. (The first and last point for both oval and rectangle are overlapping, so there are actually 12/4 distinct points.) Polygons/polylines will obviously have varying numbers of points, but only the vertices are being stored for the path.
The freehand tool, however, requires a lot more data. A freehand drawing is essentially a polyline with very very short line segments. This is why it was removed as an option for the dynamic lighting layer, because it is so much slower when compared to the other drawing tools.
Limit the number of objects that you use. For example, try to use only a single image on the maps layer, instead of a large number of map tiles, furniture, etc. Instead, create the map in an external program and then import it as one JPG or PNG file. The fewer objects that Roll20 has to render individually, the better your performance will be.
Brian said:
The freehand tool, however, requires a lot more data. A freehand drawing is essentially a polyline with very very short line segments. This is why it was removed as an option for the dynamic lighting layer, because it is so much slower when compared to the other drawing tools.
Well, in theory you could duplicate a freehand drawing using the polyline tool with the same resource load, but it would be difficult to do. IIRC a freehand line approximately the length of a grid square at default settings had somewhere in the neighborhood of 150 vertices. You could theoretically create a polyline of the same size with the same number of vertices, it'd just be a pain to draw. =)
Freehand is basically the same as polyline as far as mechanics go; the difference is that you have to click for each vertex of a polyline, while a freehand drawing drops many vertices as you drag the tool around on the page.