Thanks a ton noname!
Calling 'OnEntityBuilt' on took average Xms
The timed warnings is not that much of an issue (they happen with other plugins too) but the lag spikes are really noticable.
And I think this plugin is only useful for high gather servers anyway because on 5x or something you wouldn't really have big bases too quickly.
So I think a limit of 200 to 300 foundations doesn't seem that big. However the lag spikes are insane and will make the whole server complain.
Are the lag spikes because of the counting of total foundations or because of the looking for search range?
And I think this plugin is only useful for high gather servers anyway because on 5x or something you wouldn't really have big bases too quickly.
So I think a limit of 200 to 300 foundations doesn't seem that big. However the lag spikes are insane and will make the whole server complain.
Are the lag spikes because of the counting of total foundations or because of the looking for search range?
This is because the plug-in rescans every time a player installs one.
Reducing SearchRange may reduce the lag.
I am considering saving the installed foundation as a list without searching.
Reducing SearchRange may reduce the lag.
I am considering saving the installed foundation as a list without searching.
noname
This is because the plug-in rescans every time a player installs one.
Reducing SearchRange may reduce the lag.
I am considering saving the installed foundation as a list without searching.
Maybe if you remove the search range the plugin could work without lag. But for now i've personally switched back to a visual rule. But this plugin could solve alot if it was lag-free, so i'm hoping you can find a way :)
Any news on this? I think something could be done by looking at EntityLimit, as this plugin seems way more optimized than this one. Maybe you could do a similar system?
When looking inside the data file of EntityLimt you see it keeps track of a players steamid and then the entity + amount
maybe you can make it like a data file that instead of a steamid it will keep track of the id of the tool cupboard being used or something?
When looking inside the data file of EntityLimt you see it keeps track of a players steamid and then the entity + amount
maybe you can make it like a data file that instead of a steamid it will keep track of the id of the tool cupboard being used or something?
I will not use the same method as EntityLimit because it does not update data when it is unloaded.
Now it's just that I don't have time, so the update is delayed. Sorry
- 1
- 2