Too much lag in new update
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Too much lag in new update
by peepser » 04 Oct 2018, 22:25
Why does the game slow to a crawl after an hour? I'm running it on a fast PC, with 8 gigs ram, and it always starts to lag, making it impossible to play. And the problem is this happens while I'm in the middle of a gauntlet against the AI. Is there any way to fix this?
Re: Too much lag in new update
by Reman » 05 Oct 2018, 18:12
Yeah there's a pretty significant memory leak problem after playing a bit. Closing the program an reopening fixes the issue, but it's annoying to have to do so.
Re: Too much lag in new update
by timmermac » 05 Oct 2018, 20:06
As has been mentioned, increase the amount of memory allocated to Java.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
Re: Too much lag in new update
by Reman » 06 Oct 2018, 22:19
How do you do this? I've Googled it for ~30 mins and all I can find are Minecraft settings tutorials.timmermac wrote:As has been mentioned, increase the amount of memory allocated to Java.
Also, why is this even necessary? Isn't there a development setting that can default Java to have enough RAM to prevent this?
At the very least, I think a guide to assigning more RAM should be in the FAQ...
Re: Too much lag in new update
by peepser » 07 Oct 2018, 00:06
Yes, if there is a way to allocate more ram to java, I'd like to know what it is, too. Killing a gauntlet in mid game to get it moving again isn't a solution.
Re: Too much lag in new update
by Reman » 07 Oct 2018, 08:43
Note, I think I might have found an alternative solution. One of the posts I unearthed on this forum indicated that starting the game from forge.exe instead of the Java JAR file could do the trick. I've been playing it through the executable for 6 hours now with no issues, which I was never able to do before.peepser wrote:Yes, if there is a way to allocate more ram to java, I'd like to know what it is, too. Killing a gauntlet in mid game to get it moving again isn't a solution.
Re: Too much lag in new update
by peepser » 07 Oct 2018, 18:11
I always start with the exe, still have the lag after an hour. I tried this https://www.wikihow.com/Increase-Java-M ... -Windows-7 but cannot confirm yet if it works. Edit: It does work! Edit: It extends the time a bit, but it eventually slows to a crawl after three hours.
Last edited by peepser on 10 Oct 2018, 21:02, edited 2 times in total.
Re: Too much lag in new update
by Fizanko » 07 Oct 2018, 23:03
Instead of starting with the exe , as from what i read it gives Forge a max memory of 1gb (so forge can be played on any system) , if you have more than that on your system , try this (at least on windows)
in the Forge directory where the forge.exe is existing , create a new text file (right click -> new -> text document)
inside that text file paste
By example on the current snapshot i'm using , the name is
It's important to point that in the case you only have 2gb of memory, it will not work, the OS + whatever background program are running already eat some memory.
Now if you have a lot of memory, you can increase this value by example to -Xmx4096m if you want to allow Forge to use at max 4gb (but make sure your system have more than that.
Now in case your system only have 2gb but you would like to still allow more than the default 1gb the forge.exe allows, try -Xmx1536m
Once you have setup that line in your text file correctly, save and close, then RENAME this new text file extension from its default .txt into .bat
by example rename
Remember that the name of the .jar file may change with newer version of Forge, so rename accordingly.
in the Forge directory where the forge.exe is existing , create a new text file (right click -> new -> text document)
inside that text file paste
- Code: Select all
java -Xmx2048m -jar nameoftheforgejar.jar
By example on the current snapshot i'm using , the name is
- Code: Select all
forge-gui-desktop-1.6.17-SNAPSHOT-jar-with-dependencies.jar
- Code: Select all
java -Xmx2048m -jar forge-gui-desktop-1.6.17-SNAPSHOT-jar-with-dependencies.jar
It's important to point that in the case you only have 2gb of memory, it will not work, the OS + whatever background program are running already eat some memory.
Now if you have a lot of memory, you can increase this value by example to -Xmx4096m if you want to allow Forge to use at max 4gb (but make sure your system have more than that.
Now in case your system only have 2gb but you would like to still allow more than the default 1gb the forge.exe allows, try -Xmx1536m
Once you have setup that line in your text file correctly, save and close, then RENAME this new text file extension from its default .txt into .bat
by example rename
- Code: Select all
New Text Document.txt
- Code: Select all
Play Forge.bat
Remember that the name of the .jar file may change with newer version of Forge, so rename accordingly.
probably outdated by now so you should avoid : Innistrad world for Forge (updated 17/11/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
Re: Too much lag in new update
by squee1968 » 08 Oct 2018, 03:13
followed the instructions above, but when i double click the .bat file, a black box appears briefly, but forge doesn't start.
Re: Too much lag in new update
by Fizanko » 08 Oct 2018, 12:04
Make sure you have the .bat file in the same directory as where your forge.exe (and the .jar file is), and make sure the .jar name is correct (depending on forge version or the snapshot used the .jar file name may be different)
If all is setup correctly, give a try with
If all is setup correctly, give a try with
- Code: Select all
-Xmx1536m
probably outdated by now so you should avoid : Innistrad world for Forge (updated 17/11/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
Re: Too much lag in new update
by Reman » 08 Oct 2018, 23:58
I similarly followed the instructions above, but am getting the same error as Squee. The command prompt opens briefly, then immediately closes without the game launching. For the record, my computer has 16 GB of RAM so that shouldn't be an issue.
Re: Too much lag in new update
by friarsol » 09 Oct 2018, 00:31
If it's opening and closing there's probably some error that it's spitting out that you can't see. You should be able to add this line to your batch file `set /p=Hit ENTER to continue...`Reman wrote:I similarly followed the instructions above, but am getting the same error as Squee. The command prompt opens briefly, then immediately closes without the game launching. For the record, my computer has 16 GB of RAM so that shouldn't be an issue.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Too much lag in new update
by Reman » 09 Oct 2018, 12:17
Indeed there was. I got the error "Too small initial heap".
Any idea how to fix it?
Any idea how to fix it?
Re: Too much lag in new update
by peepser » 09 Oct 2018, 14:58
I can confirm that the link I previously posted above does work. I allowed 3 gigs of ram to java. I never had any slowdowns after playing over 2 hours.
Re: Too much lag in new update
by Fizanko » 09 Oct 2018, 18:44
I noticed in your screenshot you haveReman wrote:Indeed there was. I got the error "Too small initial heap".
Any idea how to fix it?
- Code: Select all
-Xmx2048
- Code: Select all
-Xmx2048m
probably outdated by now so you should avoid : Innistrad world for Forge (updated 17/11/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
Duel Decks for Forge - Forge custom decks (updated 25/10/2014)
22 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 172 guests