[bug report] Forge sluggish after multiple commander games

Posted:
24 Apr 2016, 16:36
by wallacethehero
Description of bug: Forge program slows down significantly after multiple games of commander. It can occur after round 1 of 3, or it can occur later or after a new game has been initiated. It is uncommon to fail to observe this if playing 3 games in a row.
forge version: 1.5.50
I have observed this bug in every game I have played that has lasted 2 or more games. It is fairly common to see the slow down in gameplay often after the first or even second round of the first game. I have also
observed it in every earlier version of forge I have played (1.5.47, 1.5.48, 1.5.49). It does not matter the deck I play, however it should be known that I play my own constructed commander decks on not generated ones from the program.
I am running windows 8, x64. If providing a complete direct x diagnostics will help, I can provide that as well.
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
25 Apr 2016, 22:11
by VileTouch
so far i have had much better performance, specially in long, consecutive sessions (gauntlet) with these JVM arguments
- Code: Select all
-Xms1024m -Xmx2048m -XX:+UseG1GC
it's not perfect, though. i still get some pauses when the GC kicks in, but so far i haven't had the game slowly choke itself to death.
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
25 Apr 2016, 23:21
by wallacethehero
Im not a programmer, not do I understand code language to any degree. Are the JVM arguments somethibg I would need to inplement into a file somewhere? I am also not sure what gauntlets are, are these related to commaned games?
Sorry I'm noob

Re: [bug report] Forge sluggish after multiple commander gam

Posted:
26 Apr 2016, 02:42
by VileTouch
wallacethehero wrote:Im not a programmer, not do I understand code language to any degree. Are the JVM arguments somethibg I would need to inplement into a file somewhere? I am also not sure what gauntlets are, are these related to commaned games?
Sorry I'm noob

it really depends on what OS are you using. for linux/mac there's forge.sh and forge.command where you can
add replace the arguments.
for windows... there's forge.exe that doesn't seem to take any arguments, but you can always make a shortcut to:
- Code: Select all
javaw.exe [arguments here] -jar "[forge's jar here]".
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
26 Apr 2016, 03:13
by wallacethehero
VileTouch wrote:wallacethehero wrote:Im not a programmer, not do I understand code language to any degree. Are the JVM arguments somethibg I would need to inplement into a file somewhere? I am also not sure what gauntlets are, are these related to commaned games?
Sorry I'm noob

it really depends on what OS are you using. for linux/mac there's forge.sh and forge.command where you can
add replace the arguments.
for windows... there's forge.exe that doesn't seem to take any arguments, but you can always make a shortcut to:
- Code: Select all
javaw.exe [arguments here] -jar "[forge's jar here]".
I am still confused. Where would that line of code go? I am interpreting this as: create shortcut -> right click to properties -> in target field, implement lines of code provided above for said arguments -> close properties -> done.
I am sure this is wrong but I really am not sure exactly where to put the arguments, or how to include multiple arguments in one line. Also, I'm on Windows 8 x64.
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
26 Apr 2016, 04:33
by VileTouch
wallacethehero wrote:VileTouch wrote:wallacethehero wrote:I am interpreting this as: create shortcut -> right click to properties -> in target field, implement lines of code provided above for said arguments -> close properties -> done.
that's correct
.also copy/paste the name of the forge jar
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
28 Apr 2016, 00:19
by wallacethehero
wallacethehero wrote:VileTouch wrote:wallacethehero wrote:I am interpreting this as: create shortcut -> right click to properties -> in target field, implement lines of code provided above for said arguments -> close properties -> done.
that's correct
.also copy/paste the name of the forge jar
Where do I find the name of the forge jar? ... and also my attempt failed to produce a working .exe file
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
28 Apr 2016, 02:09
by timmermac
If you are on the desktop version, I believe it's in the res folder. Also, the .jar file can be run by double-clicking on the file.
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
28 Apr 2016, 19:41
by VileTouch
timmermac wrote:the .jar file can be run by double-clicking on the file.
of course, but then it would just use the global settings for JVM which are usually really bad. you can see what values it uses by doing a simple:
- Code: Select all
java -XX:+PrintCommandLineFlags -version
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
28 Apr 2016, 22:05
by timmermac
I believe that you can change the parameters that an individual .jar file runs under by going into the file's properties and entering the requested parameters.
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
29 Apr 2016, 00:11
by VileTouch
timmermac wrote:I believe that you can change the parameters that an individual .jar file runs under by going into the file's properties and entering the requested parameters.
not sure about other platforms, but in windows that's not the case.
edit: it's possible if you make a shortcut, though
Re: [bug report] Forge sluggish after multiple commander gam

Posted:
29 Apr 2016, 00:17
by timmermac
And I think that's how I did it when I had a functional PC.