Back in RGSS3, creating too many sprites may cause lag and I had to create a nasty workaround to prevent lag. But I once tried to create 300 events in MV trying to cause a map lag, didn't happen, at least on my end (only a slight frameskip but no FPS drop). But that was like 2 years ago if I recall correctly.
Then today, I also found that the MZ code also abuses sprite creation as much. Such as the existence of the Sprite_Gauge, Sprite_Button, etc. Which creates inner sprites within sprites. I'm thinking to do the same. The problem is, I don't know how efficient PIXI handles many sprites if I end up creating too many sprites.
Granted, if it actually starts to lag, I can always create a workaround.
But, I'm still wondering, if there is a "limit" on this.
I'm not expecting an answer "that depends on the PC spec", but rather if the PIXI library is okay with this (they're handling it efficiently or not). Or maybe if there is any other factor I need to watch out for.
Any thought on this?
Then today, I also found that the MZ code also abuses sprite creation as much. Such as the existence of the Sprite_Gauge, Sprite_Button, etc. Which creates inner sprites within sprites. I'm thinking to do the same. The problem is, I don't know how efficient PIXI handles many sprites if I end up creating too many sprites.
Granted, if it actually starts to lag, I can always create a workaround.
But, I'm still wondering, if there is a "limit" on this.
I'm not expecting an answer "that depends on the PC spec", but rather if the PIXI library is okay with this (they're handling it efficiently or not). Or maybe if there is any other factor I need to watch out for.
Any thought on this?