I read on forum, that cutting trees is a bit laggy, and took a look onto the code, which maybe does the thing: https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/Blocks/Flora/BlockLogNatural.java#L245
I'll try to reimplement this traversal using for-loops and queues, instead of recursion.
If I made mistake and this is not the log-enumeration mechanism, please tell.
Also, the ProjectE mod, which has mass-destruction items too, uses so called "loot balls", which are object to pack all the loot in, to reduce lag. Maybe, this is the way to solve the OOM-failure problem.
I read on forum, that cutting trees is a bit laggy, and took a look onto the code, which maybe does the thing: https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/Blocks/Flora/BlockLogNatural.java#L245
I'll try to reimplement this traversal using for-loops and queues, instead of recursion.
If I made mistake and this is not the log-enumeration mechanism, please tell.
Also, the ProjectE mod, which has mass-destruction items too, uses so called "loot balls", which are object to pack all the loot in, to reduce lag. Maybe, this is the way to solve the OOM-failure problem.