Fix for thicket lag?

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Re: Fix for jungle lag?

Postby borka » Mon May 28, 2012 6:22 am

Remember The Message from Grandmaster Flash?

It's like a jungle sometimes it makes me wonder
How i keep from going under

Don't push me cause i'm close to the lag
Im trying not to loose my head, thi thi thi cket

;)
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Fix for jungle lag?

Postby Sibbechai » Mon May 28, 2012 3:05 pm

This thread hurts my faith in humanity.
Your lag can be caused by any number of things, the most likely being:

1. Your computer is terrible
2. Your computer is full of useless junk and you've made it into an expensive facebook machine
3. Not enough memory is being given to Java
4. You have out of date drivers for your video card, try updating them.


If you are using windows, you can do the following to give more memory to java:

1. Go to your start menu
2. Click on "All Programs"
3. Click on "Accessories"
4. Click on "System Tools"
5. Click on "Control Panel"
6. Click on "Programs"
7. Click on "Java"
8. Click on the tab labeled "Java"
9. Click on "View..."
10. Double click in the box under the column labeled "runtime parameters"
11. put "-Xincgc -Xmx1G" into the text field. This part depends on whether or not you have a x64 installation or a x86 installaion of windows, aka 64bit and 32bit, if you have a 32bit installation change it to "-Xincgc -Xmx512M"
12. Click "OK"

voila.
I don't know everything. Just what I know.
User avatar
Sibbechai
 
Posts: 59
Joined: Mon Jun 06, 2011 10:58 pm

Re: Fix for jungle lag?

Postby borka » Mon May 28, 2012 4:42 pm

Thanks Sibbechai, might be worth to give that a try. But i wonder if the switch -Xmx512m makes sense as it's already given in the run.bat ? Note that i am not a programmer... ;)

-Xincgc

What does it do:

Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will reduce the occasional long garbage-collection pauses during program execution. The incremental garbage collector will at times execute concurrently with the program and during such times will reduce the processor capacity available to the program.
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Fix for jungle lag?

Postby Sibbechai » Mon May 28, 2012 4:56 pm

borka wrote: Note that i am not a programmer... ;)


Neither am I, haha. I just know what I learned from dealing with minecraft a lot. If the .bat has the Xmx512M by default then I am not sure, the other option could be updating from JRE6 to JRE7, since the only time I recall ever lagging in a thicket was back when I used JRE6 on an older machine.

having this as my batch file has never failed me when I am playing with it to get it working:

Code: Select all
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar haven.jar moltke.seatribe.se -r ./res
PAUSE



currently I just use
Code: Select all
start javaw -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se -r ./res


which I believe is the default.
I don't know everything. Just what I know.
User avatar
Sibbechai
 
Posts: 59
Joined: Mon Jun 06, 2011 10:58 pm

Previous

Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 9 guests