Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
raffaelito

TerraFirmaCraft lagging ?

11 posts in this topic

Hello everyone!

 

I just started to play TerraFirmaCraft

 

After playing like...5 mins the game starts to lag

 

Let me describe the lag

 

I usually have 100 fps and i am walking around then bam lag spike...from 100 fps to 2 fps...but this happens for 1 second then it gets to normal

 

and it keeps like this till i exit the game and i enter back

 

then after 5 mins again

 

I think its because of ram allocated to terra firma craft

 

I got 8gb rams and i allocated 4gb ram

 

If i press F3 and i look in the right corner i see that it uses around 50-80% of ram

 

After those 5 mins  if  i go to windows task manager it shows me that terra firma craft uses like 3,8 gb rams

 

Maybe its because when i get close to 4gb rams it starts to lag the hell out of it

 

Do you got any suggestions ?

 

What should i do to get rid of this lag

 

Thank you very much

0

Share this post


Link to post
Share on other sites

What version of TFC are you using?

Are you using any other mods?

 

To understand what's going on, we will need a bit more info.

0

Share this post


Link to post
Share on other sites

I found that I got severe lag spikes and would run out of memory if I allocated more than 1GB of RAM. Java is a bit notorious for doing weird things when it has a large heap size. The theoretical max for 32-bit is technically 4GB, but in practice, much less. Try reducing your allocation to 1-2GB and see if that helps.

 

I found this answer on another site. I hope it helps.

 

A very important point about why you cannot allocate 4GB an only allocate a lot less than 4GB to a java process on a 32-bit machine. The threads created by your java process have their own stackspace and that also has to fit into this 4GB limit (normally due to OS overhead this limit is 3.2GB and not 4GB). Now this default thread-stackspace (Xss) is different on different operating systems and hence the difference between total memory youcan allocate to heap.As I mentioned above,Max Heap = 3.2GB - total thread-stackspace.One quick way to use more heap on a multi-threaded java app is to reduce your Xss.You can refer my blog for exact numbers.http://oakgreen.blogspot.sg/2011/08/thread-count-supported-by-jvm-on.html

 

0

Share this post


Link to post
Share on other sites

What version of TFC are you using?

Are you using any other mods?

 

To understand what's going on, we will need a bit more info.

 

I use TFC Version : Build76 hotfix 17 

 

Minecraft 1.5.1

 

 

Forge 7.7.2.682

 

Optifine 1.5.1 HD U D1

 

And i use some mods : damage indicator,smart moving,rei's minimap,craft guide 

0

Share this post


Link to post
Share on other sites

I found that I got severe lag spikes and would run out of memory if I allocated more than 1GB of RAM. Java is a bit notorious for doing weird things when it has a large heap size. The theoretical max for 32-bit is technically 4GB, but in practice, much less. Try reducing your allocation to 1-2GB and see if that helps.

 

I found this answer on another site. I hope it helps.

 

I get it

 

But i got x64 machine not x32

 

I will try to alocate 1 gb or 2gb to see how it acts :)

0

Share this post


Link to post
Share on other sites

32-bit Java will run on a 64-bit machine, so make sure that you've got 64-bit Java installed.

0

Share this post


Link to post
Share on other sites

But having said that, I'm running 64-bit everything on Linux and I get the same lags as you. I think it's Java doing massive garbage collection but haven't been able to verify that yet.

0

Share this post


Link to post
Share on other sites

Got the same problem.....

Win 7 64 bit, java 64 bit, no mod, no texture pack.

 

Will be happy to have a solution cause i'm still playing B75 because of that.

0

Share this post


Link to post
Share on other sites

Lagspikes that are a few seconds long at even intervals are commonly caused by Optifine Ultra and it's autosaving. Try using the standard version instead.

0

Share this post


Link to post
Share on other sites

I don't use any mod :(

 

But maybe your answer will be usefull for someone else, thx :)

0

Share this post


Link to post
Share on other sites

I think world generation is one of the possible reasons. I got much more lags early.Btw, my stats:

$ uname -sripLinux 3.2.0-35-generic-pae i686 i386$ free -tom			 total	   used	   free	 shared    buffers	 cachedMem:		   999	    835	    164		  0		 48	    342Swap:		 3074	    181	   2893Total:	    4074	   1016	   3057

0

Share this post


Link to post
Share on other sites