Putting too many (~15) layer filters on an object causes massive massive lag, so bad that my mouse cursor is frozen.
Numbered Steps to Reproduce Problem:
1. Try to put a bunch of layer filters on an object
2. Watch as your game starts having lag spikes and lag and you can't even open task manager to kill BYOND.
Code Snippet (if applicable) to Reproduce Problem:
var/list/L = list()
for(var/I in 1 to 15)
L += filter(type = "layer", icon = prob(50) ? 'lighting_gradient.dmi' : 'lighting_triangle.dmi', transform = transform_triangle(rand(-100,100),rand(-100,100),rand(-100,100),rand(-100,100),rand(-100,100),rand(-100,100)), blend_mode = BLEND_ADD)
filters = L
Expected Results:
not lagging to shit, and having them all display.
Actual Results:
lags to shit, and they don't display if there are too many
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
when there aren't a bunch of filters.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
use overlays instead I guess