Author Topic: Solution to solve immense lag from clearing modter?  (Read 2961 times)

My only beef with modter is how awful it is on server performance when it's cleared. I built an awesome modter planet that is even better than the classic Reactor Worker's solar system planets map from pre-v21, yet it's a total nightmare for me to clear and sometimes crashes my server due to issues with clearing large amounts of modter at once. I wish this issue was fixed or a workaround was found somehow, but sadly I haven't seen any good solution to the problem yet. Because of this, I can't use my modter planet except for specific static gamemodes (where the bricks are loaded and nothing needs to be cleared until the server shuts down).

Is there any fix to this? Clearing large amounts of modter either crashes the game or freezes everything for  30 seconds-5 minutes. Is there any better way to use modter or to clear it so this does not happen?

modter is on the water layer rather than the brick layer (you can put bricks inside water bricks like zones)

does modter lag if it was edited to be on the brick layer? i ask this

I don't know for sure, but I think the answer is yes. I feel like someone's tried it before and it didn't work. But I don't remember for sure.

It's not actually the water layer that causes the majority of the lag. It's a combination of the zones they create and delete when cleared and a couple smaller things.

Going to do some tests tomorrow.

Theory:
- You are constantly rendering that texture (funny question because cubes have the same texture render yet they don't lag)

does modter lag if it was edited to be on the brick layer? i ask this
already did the tests for water/brick
it's the same

zones they create and delete when cleared
they create zones?


already did the tests for water/brick
wtf just making it a water brick causes issues?

32 64x modter causes BL to freeze for a second
512 4x modter clears instantly
128 64x cubes stutters

wtf just making it a water brick causes issues?
no, I did a find and replace to make a new brick addon with all modter as non-water
so you could place either
they also have the clearing issue

512 64x baseplates stutters slightly

and while testing things I found out that you can jump without being on the ground, as long as you were on a brick recently, for a weird low sideways hop

edit: clearing the 64x modter one a second freezes a ton at first (96 bricks), but when it's down to the last 8 or so it clears with stutters (instead of BL frozen)
and just hammering the 64x modter makes BL stutter
« Last Edit: November 04, 2017, 02:14:40 AM by phflack »

It appears that the reason for the lag is because of the collision shapes modTer has to delete also when being removed. I could not replicate the effect with any other brick aside from JVS / bricks with separate collision meshes (older custom bricks)
« Last Edit: November 04, 2017, 02:52:25 AM by Goth77 »

It appears that the reason for the lag is because of the collision shapes modTer has to delete also when being removed. I could not replicate the effect with any other brick aside from JVS / bricks with separate collision meshes (older custom bricks)
The issue would exist with every custom brick then if that was the case, such as ramps, rounds, fences, etc.

The issue would exist with every custom brick then if that was the case, such as ramps, rounds, fences, etc.
Only bricks that have a separate collision (.dts) mesh for them

Only bricks that have a separate collision (.dts) mesh for them
Which I just mentioned.

it does seem a bit strange that the cubes need their own .dts as well
potentially could remove half the issue by speeding those up