Change wheat.

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Re: Change wheat.

Postby Lothaudus » Fri Dec 11, 2009 8:35 pm

Chakravanti wrote:At least as a temporary measure, draw up the current stuff as a series of half a dozen sprites that fit on half the tile and then make it two sprites for the wheat please.

Wheat does seem to lag a lot more than the other crops. It does also seem to be the fastest growing field?

Having some sort of "alternate wheat" option would be interesting. Even just to see what affect it has on the lag. If it has none, then obviously something else other than drawing the sprites is the cause.

Chakravanti wrote:Do this at LEAST until you can figure out wtf is causing this game to lag so badly and consume so many resources to begin with.

Well... It is built in Java...

I know someone on a quad-core processor with the same RAM as me who gets worse lag than I do, even though I'm only on a dual-core. Go figure.
Barry Fletcher Norwin
Lawspeaker of Crossroads - Leader of Codexia - Keeper of the Cheese
http://www.rpgcodex.net
User avatar
Lothaudus
 
Posts: 641
Joined: Fri Oct 23, 2009 12:32 pm
Location: Adelaide, Australia

Re: Change wheat.

Postby Chakravanti » Fri Dec 11, 2009 9:08 pm

It's really not to do with Java from what I hear people who speak of code, rather poor implementation of OpenGL as Loftar himself candidly admits.
Well what is this that I can't see
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
User avatar
Chakravanti
 
Posts: 3345
Joined: Sat Aug 29, 2009 3:38 am

Re: Change wheat.

Postby loftar » Sat Dec 12, 2009 12:32 am

Chakravanti wrote:It's really not to do with Java from what I hear people who speak of code, rather poor implementation of OpenGL as Loftar himself candidly admits.

Indeed. There are lots and lots of real reasons to dislike Java, but performance isn't really one of them; not anymore, at least. I already wrote about it in some other thread, but Hotspot is quite a cool JIT implementation that does a lot of really impressive optimizations that normal static compilers could only dream of. Sure, it's easy to write Java programs so that they are slow, but that belongs with those many other complaints about Java, and I've managed to stay rather clear of them, to my knowledge.

While profiling*, I more often find that while it's true that some time is spent doing CPU-bound calculations (and those are probably possible to optimize further), the vast majority of the time is actually spent in the OpenGL calls, which indicates to me that I'm doing something wrong in my usage of OpenGL.

* If you want to try yourself, run the client with the "haven.profile" system property set to "on", and press the ` or ~ keys to bring up profiling on the mapview or the whole draw cycle.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Change wheat.

Postby warrri » Sat Dec 12, 2009 12:36 am

Cant you use direct3d instead? :P
The world I love The tears I drop To be part of The wave can't stop
Ever wonder if it's all for you
The world I love The trains I hop To be part of The wave can't stop
Come and tell me when it's time to
User avatar
warrri
 
Posts: 1033
Joined: Fri Aug 28, 2009 5:55 pm

Re: Change wheat.

Postby lordrio » Sat Dec 12, 2009 3:09 am

Then this game will be a windows-only game.
lordrio
 
Posts: 133
Joined: Wed Oct 14, 2009 1:58 pm

Re: Change wheat.

Postby Chakravanti » Sat Dec 12, 2009 3:18 am

warrri wrote:Cant you use direct3d instead? :P

Go to hell. Seriously. DirectX/>OpenGL. It's how one uses it.
Well what is this that I can't see
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
User avatar
Chakravanti
 
Posts: 3345
Joined: Sat Aug 29, 2009 3:38 am

Previous

Return to Critique & Ideas

Who is online

Users browsing this forum: Claude [Bot] and 3 guests