Hi there!
I have some doubts while making my plugins and the game. And it is about performance.
For example, I know that it depends on the code of the plugin for it to lag the game.
But, what is the most thing that can lag a game in the plugins?
1 - A lot of global variables, instead of local ones?
2 - Also, many aliases of the same function, in different plugins, (like one alias "Scene_ItemBase.prototype.createActorWindow = function()" and other aliases that too)?
3 - Another one is to make a script call like a plugin( I don't know if I use the right expression here...). I mean, for example, at the beginning of the game, in a script call:
Or
Another code, more complex, utilizing "var banana = something"
These things is saved in the save file of the game, right? And the "var" that I create on script calls, will be global? I mean, I can use that in another event? Or do I have to assign a value to it again?
Thanks a lot! ^^
I have some doubts while making my plugins and the game. And it is about performance.
For example, I know that it depends on the code of the plugin for it to lag the game.
But, what is the most thing that can lag a game in the plugins?
1 - A lot of global variables, instead of local ones?
2 - Also, many aliases of the same function, in different plugins, (like one alias "Scene_ItemBase.prototype.createActorWindow = function()" and other aliases that too)?
3 - Another one is to make a script call like a plugin( I don't know if I use the right expression here...). I mean, for example, at the beginning of the game, in a script call:
Code:
If(Utils.isMobileDevice()) { $gameSwitches.setValue(1, true)};
Or
Another code, more complex, utilizing "var banana = something"
These things is saved in the save file of the game, right? And the "var" that I create on script calls, will be global? I mean, I can use that in another event? Or do I have to assign a value to it again?
Thanks a lot! ^^