CC: Tweaked

CC: Tweaked

42M Downloads

Server Optimisation

saismeesaimonsaimes opened this issue ยท 10 comments

commented

This runs horribly on servers, even if there is 1 player online. If it ran better I could see myself using it a lot more. This is very useful for private chatrooms/servers, but it just isn't all there... :/

commented

I've not noticed any performance issues, and know of several servers where it is used mostly without issue.

It would be very useful if you could provide numbers to show the problem, such as a visualvm sampler session, or TPS comparisons with vanilla CC/no CC.

commented

Well, when I am hosting a server on my own pc, or my friend does on his (Note that I have enough ram and my CPU is barely being tasked), we get large ping between typing and the text appearing inside the computer. No other mods installed, 1.12.2

commented

That's strange, I've definitely not had that problem on my local servers. Not quite sure what's going on.

Can you try with vanilla ComputerCraft to check it's not a regression.

commented

Not sure what you mean by vanilla CC, but as singleplayer, it works fine.

commented

Not sure what you mean by vanilla CC

ComputerCraft from https://minecraft.curseforge.com/projects/computercraft instead of the CC:T page.

commented

Yep, it works fine on vanilla... sad to see CC:T not.

commented

Well, it's just input delay. I didn't even mean to fork as well lol.

Regular forge server, official build. Will show output, it's a bearable amount of ping, just unwanted.

commented

Alright, it was a fresh world, but upon loading my gps map, the issue seems to have faded... not sure why, but it did, thanks for all the help, and sorry for the useless issue.

commented

If you're done with this issue, please click the close button.

commented

A few more questions. Sorry for asking very simple questions, but it is hard to know what exactly is going wrong with such a vague issue that nobody else seems to have:

  • Is this a fresh world (brand new with nothing built in it, generated AFTER installing CC:Tweaked)?
  • Are you using any server software like Sponge, or is this a regular Forge server?
  • Are you running an official build of CC:Tweaked, or have you compiled it yourself? I noticed you forked the repo.
  • Can you share the output of /forge tps after your server has been running for about 5 minutes, and you have at least one player online?

To help further diagnose the issue, you could use a tool such as Sampler or WarmRoast to get a CPU profiling report, which could provide more information as to what exactly is causing the lag.

As a side note, SwitchCraft has been using CC:Tweaked for the last 7 months with 15-30 players online at any given time, and has no performance issues even with a very large world with lots of computers etc.