The main reason is because is not multithread: in our server we have the problem that when we have lot of players logged and a lot of entity loaded we have some performace issues. I've already improved the ticking of our mods, and i've also overrided via asm some vanilla methods, but now i want to try to design a decent multithread structure to attach to forge.
I'm designing a better ticking system for forge, that will allow to parallelize the tick of certain types of entities or the tracking of them. All this to improve the performance of large servers that have many entities. To do this i need to override some methods of the Minecraft server base classes, and create a better scheduling system.
But this needs to be compatible with forge, I know how Forge work, but i never done before this type of modifications.
Hi,
as a title, I want to extend some minecraft classes (like CustomWorldServer extends WorldServer) and replace some methods or fields. But how can I load those classes that extends the originals?
I read about core modding, so i can remove via ASM the body of a function and add a static call to my classes, but if i need to replace multiple functions, this can be very awkward.
There are best practices to do this in an easy manner?
Thanks!
6 replies
Important Information
By using this site, you agree to our Terms of Use.