Mystcraft causing major lag?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Recon

New Member
Jul 29, 2019
408
0
0
Does anyone else get this when on a server which is not local (LAN) ?
I connect to a server at someone else's house, and for the most part things are fine and responsive. But whenever I use a link book from mystcraft, I get this nasty delay effect where everything I do seems to be queued up and executed 30 seconds or so after I try to do it. I can even hear myself walking around doing what I tried to do a moment ago. Eventually it catches up, but its very disorienting and sometimes I even lose connection when using a link book.

And before you say "But its all that new data being sent from a new world" that was my theory too, until I crafted the link modifier tonight and tried one where I teleported only across the same room. I got the same problem, so it can't be overflow of data from new chunk loading. Anybody else experience this?
 

RampantPanda65

New Member
Jul 29, 2019
490
1
0
Mystcraft puts heavy stress on a server. If multiple people are in different ages running quarries and other things such as that, it can lag a lot.
 

elmarko98

New Member
Jul 29, 2019
63
0
0
The Forgecraft server that Direwolf SMP is based in doesn't lag when they used multiple Mystcraft worlds, is that because it's a rented server?
 

SkoobyDoo

New Member
Jul 29, 2019
4
0
0
I have this issue and I can confirm within about 80% certainty that there is some sort of client side memory leak going on on the part of mystcraft. I can play all day on the server I run on my desktop for my friends and I, and any time anyone gets the idea to use mystcraft worlds, they and only they lag (server does not continue to consume more memory or processing power than would be expected) more and more until they have to restart their client after about 5-10 trips back and forth. Even with one person at both end of the book, a third going back and forth will experience mounting and eventually unplayable lag. Just to reiterate, I am running the server on my desktop and I monitor its cpu and memory usage closely, having one person in one world and another person in another world does not significantly increase the memory usage over simply having two people in completely separate areas in the same world. This issue appears to be definitely linked to the actual act of using a book (or a book portal) to travel between dimensions.

While I'm thinking about it, I've even got a mystcraft portal to the nether (I like customizing the size/shape) set up, and that causes lag after a few trips back and forth, which is immediately remedied by restarting the client.

Just something to consider.
 

Recon

New Member
Jul 29, 2019
408
0
0
Well that's funny, since our issue seems to definitely have a server impact. This is what happens to his server when anyone (on LAN or on the internet) uses a link book:

img_2310.png


Thing is, I'm the only one who has a negative client side effect, since I'm the one accessing the server remotely and the other two players were local to the server. Still, this server spike was when a link book was used by a local player.
 

Maximuscr31

New Member
Jul 29, 2019
162
0
0
When we use linking books on our dedicated server it lags the person using it for 2 seconds. We have tested this in rapid succession and it will back buffer a little it seems but no more than 6 seconds with 8 instant teleports back to back to back to back. We have a dedicated server that is remotely accessed.
 

SkoobyDoo

New Member
Jul 29, 2019
4
0
0
Well that's funny, since our issue seems to definitely have a server impact. This is what happens to his server when anyone (on LAN or on the internet) uses a link book:

[picture omitted]

Thing is, I'm the only one who has a negative client side effect, since I'm the one accessing the server remotely and the other two players were local to the server. Still, this server spike was when a link book was used by a local player.

That is actually really insane. I'll upload a video of my symptoms, since a picture doesn't really do much to explain
 

Recon

New Member
Jul 29, 2019
408
0
0
I'm starting to think we had too much packed into the base. We removed the buildcraft pipes for liquid and that seems to have really helped. Its still a laggy catch up for a few seconds after using a link book, but at least nobody crashes and it does smooth out eventually.

Still, mystcraft seems to be resending all the chunk data every time you jump, even if you only jump a short distance. I'm hoping to unlock the Crystals rune so I can make actual mystcraft portals and see if maybe that will help.
 

Kelvin

New Member
Jul 29, 2019
43
0
0
Recon, I have the same problem with portals, over 3 ages (overworld/flatworld/nether) I have portals set up with 2 chunkloaders in each age, if I visit each age once everything is fine, however every 5 or so jumps through the portal I get another 10%ish memory usage until it hits 90% if I do any more jumps after that I will crash.
 

Bluehorazon

New Member
Jul 29, 2019
293
0
0
Hmm... for me it works fine. I get into trouble if I move very fast to a lot of different locations, since it has to load the surroundings always, which causes some issues. But I don't think that this is a MystCraft-Issue, since it happens with IC2-Teleporters too. I guess Mystcraft is doing something which is not that good for the minecraft-engine, but I'm not sure.
 

Invaders

New Member
Jul 29, 2019
55
0
0
Because IC2 teleporters and Mystcraftbooks basically used a pumped up version of /tp, you end up forcing the server to reload/resend all the chunks that come into view.
 

Recon

New Member
Jul 29, 2019
408
0
0
Well, how does Portal Gun do it? With PG, you get fairly instantaneous movement w/o reloading the local chunks if you're still somewhat near where you were.
 

Omicron

New Member
Jul 29, 2019
2,974
0
0
Portals don't load a new world, they're just a fancy way of inflicting the /tp console command on the user.
 

Recon

New Member
Jul 29, 2019
408
0
0
Well that's exactly what Invaders just said Mystcraft is doing. So maybe Mystcraft should do it like the Portal Gun does it when using intra-world links. That would save a heap of server burden to just move the player around uber fast instead of reloading everything to the client.
 

Omicron

New Member
Jul 29, 2019
2,974
0
0
I would liken Mystcraft portals/book more to the Nether portal than to the teleport command, honestly.
 

Bluehorazon

New Member
Jul 29, 2019
293
0
0
Well portals just have 2 points. And I also guess that they load their surrounding. If you jump between to anchored Mystcraftportals you won't get much lag (just some rendering). Mystcraft only fucks you if you jump to unloaded chunks and the same is true for IC2-Teleporters. And I guess this is also true for normal /tp so it should be a vanilla-issue, which might need some forge-help to be fixed. But I guess that is a pretty difficult thing.
 

Recon

New Member
Jul 29, 2019
408
0
0
For the record, you can use a Mystcraft link book to jump across a small room, and it will still reload all your chunks. I was thinking it could be optimized to not do that for the local jumps like that. Without portalgun (I have it disabled because it doesn't play well with Optifine) Mystcraft is the only option for that kind of thing.
 

Bluehorazon

New Member
Jul 29, 2019
293
0
0
Hmm... yeah it's the /tp command which moves you out of the world and puts you and your new location back in. Unfortunatly the command unloads the chunks arround you as it seems. It works if you teleport to anchors (at least for me) the world just needs re-rendering, which isn't a big issue (just takes a second).

I'm not sure if you could workaround this. Portal-Gun just avoids this by keeping the chunks loaded, where the portals are I guess (at least this would make sense).
 

Invaders

New Member
Jul 29, 2019
55
0
0
For the record, you can use a Mystcraft link book to jump across a small room, and it will still reload all your chunks. I was thinking it could be optimized to not do that for the local jumps like that. Without portalgun (I have it disabled because it doesn't play well with Optifine) Mystcraft is the only option for that kind of thing.
If I'm correct, which I'm probably not, and no hate to Forge, but I think thats a Forge bug, and for the record, I think Portal Guns are coded specifically not to do that