Excessive Lag Only in part of my Base

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • 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

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Java uses multicores... I am pretty sure when you launch minecraft you can use java arguments like -XX: ParallelGCThreads=8 This will let java use more then one core to process the game. I notice a pretty big speed increase when i do this.

No, this will let the garbage collector use more threads, that's it. The program itself has to be written to take advantage of multicore CPUs. Also note that multiple threads and multiple cores are not synonymous in programming. I can write a multithreaded program that only runs on one processor.
 

tehBlobLord

New Member
Jul 29, 2019
547
0
0
I used to have terrible framerate drops and crashes in one part of my base, it turns out it was because of microblocks. I don't touch the things any more, too much extra data :) I've seen it happen to other people too. Maybe it's that?
 

CobaltAlchemist

New Member
Jul 29, 2019
8
0
0
I'm not entirely sure of the load applied energistics causes for the computer, however just thinking of it now, You're also hosting the server on that computer yes?
Did your lag correlate with something else, for example a modpack update.
It may not be client side which is causing the lag for your computer.
Indeed I am hosting. However, it doesn't get worse if people log on. I could have up to 4 people all doing random stuff in completely different areas or worlds and it's still the same frame rate (one of the first things I checked).
The problem started mainly several days after direwolf20 updated (I believe), later on I moved to Ultimate (since I started to like Gregtech despite half of my friends saying "noooo not gregtech!"). That makes me think it's not modpack update related, but I've been wrong before.


Odd question, but it could be the source of your problem. I know I helped a few people on the FTB sub reddit this way.
How much memory have you allocated for the server and the client? How many players are on the server at max?
Client should never ever need to go above 2 gigs, and 1 is enough for just about anything other than 128x or higher texture packs. The server should have between 512mb and 1 gig per client.
Just checked and the server has 4GB as well. So going by your estimates I should have plenty for the people on the server. I don't use texture packs (tried sphax x128, but it seemed to slow down the game even worse... probably a placebo)
I think at max, I've had about maybe 5 people online. That was when we had a new member that left the next day so generally we only peak at about 4 people online. On average, 2.


I used to have terrible framerate drops and crashes in one part of my base, it turns out it was because of microblocks. I don't touch the things any more, too much extra data :) I've seen it happen to other people too. Maybe it's that?

I'm 100% with you in terms of not using microblocks! I mainly just absolutely hate going and rebuilding something after using microblocks. It's way too much work to go and fix things up after using them. I will, however, use microblocks if I use Blutricity (which is very rare for me)


***EDIT***
I would like to point out that if I have fancy graphics and smooth lighting turned off along with short render distance my FPS peaks at 25 and averages about 23 (still in the laggy zone)
 

Adonis0

New Member
Jul 29, 2019
1,800
0
0
Indeed I am hosting. However, it doesn't get worse if people log on. I could have up to 4 people all doing random stuff in completely different areas or worlds and it's still the same frame rate (one of the first things I checked).
The problem started mainly several days after direwolf20 updated (I believe), later on I moved to Ultimate (since I started to like Gregtech despite half of my friends saying "noooo not gregtech!"). That makes me think it's not modpack update related, but I've been wrong before.



Just checked and the server has 4GB as well. So going by your estimates I should have plenty for the people on the server. I don't use texture packs (tried sphax x128, but it seemed to slow down the game even worse... probably a placebo)
I think at max, I've had about maybe 5 people online. That was when we had a new member that left the next day so generally we only peak at about 4 people online. On average, 2.




[Snip]

The reason I was saying this is perhaps it's the computer hosting the server that's slowing down your client, people don't have to be logged on for the server to be using up processing space on your computer.
I know that the friend who hosts the server I play on very often doesn't actually play on the hosting computer because it lags him. We did used to use a thing called tickthreading and that was a fantastic serverside mod, however it doesn't play nice with applied energistics. Perhaps keep an eye on that until tickthreading and AE are friends again.
 

CobaltAlchemist

New Member
Jul 29, 2019
8
0
0
The reason I was saying this is perhaps it's the computer hosting the server that's slowing down your client, people don't have to be logged on for the server to be using up processing space on your computer.
I know that the friend who hosts the server I play on very often doesn't actually play on the hosting computer because it lags him. We did used to use a thing called tickthreading and that was a fantastic serverside mod, however it doesn't play nice with applied energistics. Perhaps keep an eye on that until tickthreading and AE are friends again.

Hmm... I suppose it could, I was just figuring that they'd run on separate cores and not really impact each other too harshly (one of the main reasons I got an 8 core being my excessive need for multitasking with cpu intensive programs)
I'll keep an eye on Tickthreading though in case it works. I'll run tests on a copy of my server with Tickthreading once it works with AE.


By the way, Thank you to all of you who have helped so far! I honestly only expected one or two people to reply, but the community on this forum is amazing. I've never met so many people willing to help so quickly so I was reluctant to join this site, but I'm glad I did! You guys should all be blessed with a thousand cat pictures!
 

Bomb Bloke

New Member
Jul 29, 2019
612
0
0
You've already established that the problem specifically relates to being near and looking at a certain area.

So start looking at things in that area more closely until you've got it narrowed down further. If everything works fine when you're away from that zone then you know that other players, chunk loading, etc have nothing to do with the issue. Again, if your bees are in that spot, turning off their particles would be a good starting point. If other players have similar setups, go visit them and see if they affect you in the same way - if not, you can discount whatever they're using as being your issue.
 

CobaltAlchemist

New Member
Jul 29, 2019
8
0
0
You've already established that the problem specifically relates to being near and looking at a certain area.

So start looking at things in that area more closely until you've got it narrowed down further. If everything works fine when you're away from that zone then you know that other players, chunk loading, etc have nothing to do with the issue. Again, if your bees are in that spot, turning off their particles would be a good starting point. If other players have similar setups, go visit them and see if they affect you in the same way - if not, you can discount whatever they're using as being your issue.

I think I narrowed it down as far as I could get it to these spots:
16-18ish FPS:
ZoQNEqsh.png


16-18ish FPS
QV5TzDdh.png


18-20FPS
nMhdbdPh.png


Extremely erratic 13-22 FPS
0rkUlA1h.png

The bees are next door, but I turned off particle effects and they should only be loaded via chunks and not rendered (assuming minecraft renders only visible geometry which I believe Advanced OpenGL accomplishes)
I can just go to my tree farm that rests under my home (on a little island maybe 60m away or so from the nearest edge of my cube-home-thing)
 

noobbyte

Active Member
Jul 29, 2019
37
0
26
i believe relays are ridiculously bugged and will slow your cpu to a halt due to too many updates. in the last image, you may want to replace the relay with an interface or something
 

CobaltAlchemist

New Member
Jul 29, 2019
8
0
0
i believe relays are ridiculously bugged and will slow your cpu to a halt due to too many updates. in the last image, you may want to replace the relay with an interface or something

Those are the overflow outputs for my cobble and dirt and they only run every once in a while. Just in case I went and removed the export buses to make sure, but it didn't make a difference... :/
 

noobbyte

Active Member
Jul 29, 2019
37
0
26
even with no inputs to it the relay will still keep trying to push things out, which is why it's laggy - it checks for items way too often.
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
You can also try preformatting some of your disks in your me drives. I found when I started doing this it reduced some of the lag I got from ae.
 

CobaltAlchemist

New Member
Jul 29, 2019
8
0
0
You can also try preformatting some of your disks in your me drives. I found when I started doing this it reduced some of the lag I got from ae.

I tend to attempt to preformat everything for every object I make (until recently the only "random" disk I owned had solely bees in it). Thought that's an interesting thing that I'm going to keep watching out for

even with no inputs to it the relay will still keep trying to push things out, which is why it's laggy - it checks for items way too often.

You sir, I like you! That just increased my FPS a bunch! I now get 22-30 FPS in that horrible area! I never knew there was such a problem with relays, but I'll make sure to never use those again!! You just made my day!
Now the worst spot in my base only gets down to 20FPS and jumps between 20-30. If anyone has other suggestions I'll be sure to listen to them, but I think you guys all just solved my problem!

Just one last odd note about lag, whenever I place a block Minecraft freezes for a split second and FRAPS says that it dips down to 16 (due to the freeze). Anyone know what this is about?
***EDIT***
Also if I try sprinting, it lags for a second in the same freezing manner
 

Adonis0

New Member
Jul 29, 2019
1,800
0
0
Just a question, similar problem that popped up for me
I just started having lag today, tried reinstalling modpack, restarting computer etc which normally fixes these sudden lag spurts. But for some reason it hasn't. The lag is caused by loading the chunks slowly (changing the viewing distance doesn't seem to affect this), so just to check before I do it. Optifine can make your game load chunks faster right?
 

noobbyte

Active Member
Jul 29, 2019
37
0
26
that's good to know. i have no idea why it just randomly freezes though! possibly allocate some more RAM?
glad i couild help! :D