I'm using Flint for some particle effects and I've run into quite a bottleneck.
I've tracked down the suspect to this function:
renderer.addFilter( new ColorMatrixFilter( [ 1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0.95,0 ] ) );
It's kinda essential since it reduces the alpha of each particle every time the flint renderer updates so that it has a trail effect.But it's really reducing my framerate(Well not my framerate but more updates per second kinda thing)
Is there some kind of alternative to this?
edit: I've reduced the amount of particles generated to only 5 per burst but it's still reducing my UPS quite alot..
98.80239520958084 tick:99 delta:1002
97.41550695825049 tick:98 delta:1006
89.46322067594434 tick:90 delta:1006
76 tick:76 delta:1000
86.48111332007952 tick:87 delta:1006
97.41550695825049 tick:98 delta:1006
91.71597633136095 tick:93 delta:1014
70.2970297029703 tick:71 delta:1010
76.69322709163347 tick:77 delta:1004
78.37301587301587 tick:79 delta:1008
80.5168986083499 tick:81 delta:1006
97.41550695825049 tick:98 delta:1006
75.62189054726367 tick:76 delta:1005
80.67729083665338 tick:81 delta:1004
76.69322709163347 tick:77 delta:1004
82.50497017892644 tick:83 delta:1006
77.7666999002991 tick:78 delta:1003
83 tick:83 delta:1000
97.22222222222223 tick:98 delta:1008
92.35352532274081 tick:93 delta:1007
68.93106893106892 tick:69 delta:1001
73.70517928286853 tick:74 delta:1004
95 tick:95 delta:1000
Notice the spikes that reduce by up to 30?
100 Ups is the "goal"