Arevulopapo/PK8's Particle Engine "flickering" problem

As the title states, I've run in to a minor (but still somewhat serious) issue regarding Arevulopapo/PK8's Particle Engine script causing a strobing/flickering problem when particles appear.

If the particles wait timer is set to a low number (eg = 4 frames) the particles will flicker rapidly as they appear and increasing the wait timer (eg = 20 frames) will cause it to strobe/pulse instead. This issue becomes far more noticeable if the particles blend type is set to "Add" or "Subtract" instead of "Normal". On this note, while decreasing the wait timers lower than 4 almost eradicates the flickering, having excessive particles on screen can cause severe FPS lag/drops (something many people want to avoid having issues with).

What I wish to do instead is to be able to add is a "fade-in" factor/function before they "fade-out" to prevent the strobing/flickering problem and to avoid causing an "epileptic" effect for people who suffer from epileptic seizures (along with other side-effects such as motion-sickness which personally I'm susceptible to).

As an example of my current work, I am trying to make a waterfall with better animated details than the current/default animated 3-frame tiles using particles.

fLf65II.png


At the top of each waterfall section is 3 events that generate 3 tile-wide (96x64) waterfall particles, spaced evenly between the 7 tile-wide waterfall. Because each particle is set to a base value of 255 while using an Add blend-type, they cause flickering/strobing which is not exactly how a waterfall works. As stated before, while decreasing the base value will improve particles using Add blend-types from becoming too bright, this will not stop the flickering/strobing as the particles will always appear at "100%" of what ever their base value is set to rather than gradually appearing in a smooth 0-to-100 transition.

Inside the script, I'm currently using this formula.

when 'waterfall_sml_3'
sprite='waterfall3'
add_particles(object, x, y+16, sprite, [0.1*(rand(4)-2)/10, 0], [0,-0.1], [255,4+rand(2)], lock, 1)

What I wish to change or adjust in the script is the [255,4+rand(2)] base factor to either include a value "before" this or to add a "part" to the value. Either something along the lines of [0,50+rand(10)], [255,4+rand(20)] or a combined value of [0,50+random(10),255,4+rand(20)] where the particle takes the secondary base value (in this case, 255) to calculate the maximum value of when to finish the fade-in (eg = 255 / 50 = 5 frames) before it starts the fade out process.

Arevulopapo/PK8's script can be found here.
Normally I don't like doing this but... bump?

Please, I do need help with this issue. I don't want to mess around with the script personally for the sake of causing issues with my game.
I had a similar problem with lighting events in my game, and got around it by increasing the frequency of the event. Is there any way to increase the frequency of the particles to say 5 (to make it equivalent to an event of frequency 5)?
Again, the problem with "increasing" the frequency (or in this case a "Wait" timer in an event) of particles is that this will cause FPS lag (which I'm trying to avoid) when the game generates too many particles for the engine to handle, especially if there are multiple events generating multiple particles all at once (Effectus only works to reduce "Event" based lag, not the "particles" that an event generates by another script).

All I want to do is simply add a function in to the script to make a particle fade in before fading out to avoid the flickering/strobing problem.
You misunderstood what I meant by frequency. Look at an event in the game. It has two tags, frequency and speed. Frequency determines how often the event runs, so a higher frequency means it will run more often. The higher you set that, the sooner the event runs the first time, preventing the issue.
I already know about the "Speed" and "Freq." values in an event and they were already set, by me, to x4 Faster/Highest with the Loop set to 6 frames.

E4ZPKlP.png


Again, if the Wait time is set to 4 frames or less, with or without a "Loop" factor, it will reduce the strobe/flicker but will come at a cost of FPS loss if there are "multiple" events generating particles (there are sometimes more than 10 particle generator events per a map). I do not want to decrease the Wait time but to simply add a fade-in for particles to stop the strobe/flicker as they "appear" on screen at 100% of the value set in the script (0-255).

Original thread: https://forums.rpgmakerweb.com/threads/arevulopapo-pk8s-particle-engine-flickering-problem.75249/