Page 2 of 3

Re: heavy lags in 1.1

PostPosted: 23.09.2012, 22:35
by bimm
..

Re: heavy lags in 1.1

PostPosted: 23.09.2012, 22:40
by dcode
I just uploaded another client-side update to display some more information about the issue. When the game starts, type "/debug" into the chat box (without quotes) and it will show you some values on the upper left of the game board.

fps: Frames per second / average frame draw time in ms
ups: State updates per second / average state update time in ms
sta: Server tick advance

An idalistic value that I personally get on windows is: 20 fps / 0, 20 ups / 0, 1 sta
I guess on linux it's really bad currently.

Please post me your values :)

Re: heavy lags in 1.1

PostPosted: 23.09.2012, 22:48
by bimm
..

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 00:31
by dcode
I think I found a solution. When you are on linux, do the following:

Open the "CreepTD" executable and edit it with a text editor, then change:

java -Xms64m -Xmx512m -jar $path/bin/bootstrap.jar -jar bin/creeptd-launcher.jar

To
java -Dsun.java2d.opengl=true -Xms64m -Xmx512m -jar $path/bin/bootstrap.jar -jar bin/creeptd-launcher.jar

And let me know if this is working for you. In my linux VM it is now super fast but there are some display bugs regarding the game window. Need to know if it's also there on a real linux box :)

Update: I've also updated the linux download to include the change so you also can simply download it again. Can't be much worse than it is currently, I think.

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 00:46
by bimm
..

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 00:57
by dcode
I just uploaded an updated version of the client that does full-window repaints. Maybe this helps...trying it out now :)

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 01:08
by bimm
..

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 01:20
by dcode
Yeah, that's sad. But as ugly as this looks, I think this is the way to solve the problem. For now, I've disabled the custom window decorations around the client if OpenGL is used. I also uploaded it, give it a try if you want. I'm testing it in my VM :)

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 01:28
by bimm
..

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 01:33
by dcode
And if I have to replace the default Swing drawing graphics behind that... I want that to work ^^

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 10:33
by Rambo196
Ich wollte nur anmerken, dass ich auf Windows 7 auch Standbilder/laggs habe, sodass das Spiel unspielbar ist.

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 15:50
by derMaster1
Moin,

langsam setzen die Entzugserscheinungen ein ;)

Rambo, handelt es sich bei deinen Lags um die gleichen wie bei mir und bimm (siehe Beschreibungen) ?

Denn dann wäre das Linux-Problem gar kein Linux-Problem mehr... (Ximon schreibt im anderen Thread auch von lags, aber nennt dabei sein Betriebssystem nicht).

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 16:12
by dcode
I think I finally got the OpenGL hardware acceleration pipeline working now. It's not yet perfect (in game the sidebar seems to flicker), but on my VM it's already playable again. I really hope that it's working out for you also, at least somehow to be playable, after 24h of frustration ^^

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 16:36
by derMaster1
dcode :) You got it!!

No problems anymore, the nonworking sidebar seems to be a windows-problem (or VM-Prob).

Works fine, and the new survivor mode is nice.

I wanted tu suggest to implement a hotkey for "invest", but then "saw" the surprise. Good work, thanks for all your help!

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 16:37
by Seraph07
Try the space hotkey to invest.
Changing the per cent with scrolling your mouserad.

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 18:44
by derMaster1
hab ich beides gefunden durch zufall, wollte das eigentlich auch in meinem letzten post geschrieben haben..

bimm hat übrigens noch probleme mit den lags, schlimmer als je zuvor.

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 19:13
by bimm
..

Re: heavy lags in 1.1

PostPosted: 24.09.2012, 21:25
by dcode
Hmm...das ist schlecht. Ich überlege mal, was ich da machen kann. Vielleicht ein --minimalistic command line switch oder so :)

Re: heavy lags in 1.1

PostPosted: 25.09.2012, 12:10
by tiagorvs
dcode wrote:I think I found a solution. When you are on linux, do the following:

Open the "CreepTD" executable and edit it with a text editor, then change:

java -Xms64m -Xmx512m -jar $path/bin/bootstrap.jar -jar bin/creeptd-launcher.jar

To
java -Dsun.java2d.opengl=true -Xms64m -Xmx512m -jar $path/bin/bootstrap.jar -jar bin/creeptd-launcher.jar

And let me know if this is working for you. In my linux VM it is now super fast but there are some display bugs regarding the game window. Need to know if it's also there on a real linux box :)

Update: I've also updated the linux download to include the change so you also can simply download it again. Can't be much worse than it is currently, I think.


Wow, this is work for my linux :D

Thx

Re: heavy lags in 1.1

PostPosted: 26.09.2012, 23:06
by bimm
..