Looking for some technical insights more than anything. Quick intro:
I've used the well known, or so I believe, Multiple Fogs script. Later on I made one of my own that was easier to use, smaller, and able to work seamlessly with weather conditions. I call it the Layer Effects module.
The performance remained the same. So I don't believe it has anything to do with my own script in particular.
Now that I need to use my laptop to demo it, I can really tell the performance hit in this machine compared to my desktop.
Without Planes, or with Planes at 0% opacity, the game run almost flawlessly. With Planes, down to sluggish 45 FPS. On other games would be okay, but drawing is tied to frames instead of time in RM, so, it feels slow-mo.
I am right now testing with about 8 active Planes (which desktop barely notices, but kills my laptop), although for playtesting I downgraded it to 4, which makes a big difference.
Each effect layer is about 1000 x 500 in size, PNG.
So! Questions:
- Is it normal that the performance decreases significantly by having only 4 active Planes? Are these that costly?
- Is there any optimization script made already to improve the way these guys are drawn?
- Alternatively, anyone can think of a better way to draw particles in air to represent wind flow?
Would love to hear your insights, and might as well open for discussion :)
Cheers!