Re: Status of Java Freeciv 1.10.0 (long)

Brian Duff <[email protected]> Thu, 04 May 2000 11:07:00 +0100
Newsgroups gmane.games.freeciv.java
Organization Oracle Corporation UK Ltd
Message-ID <[email protected]>

Artur Biesiadowski wrote:

> Sorry to say this after you already have writting this, but JDK supports
> XPM by default, in same way it does for gif or jpg - just use default
> Toolkit for it :)
>

D'oh! I should have tried that first :)

> > I need to pull the original code from
> > CVS and compare the map rendering speeds to see whether it's something
> > I've done. Maybe need to use an offscreen buffer.
>
> One note here - make sure you are lloking at map after getting all
> terrain packets from server. As map is drawn during net traffic (at
> least it was in original version) it sometimes looked like it was
> drawing tile by tile - but it was in fact one by one update from net
> packets, not slowness of rendering itself.

Hmm, but I'm running a server on the same machine, so the socket overhead
shouldn't be this slow (unless Java sockets are really inefficient). I'm
thinking that maybe my moving the server packet handler to a different thread
might be part of the problem; whenever I receive a tile info packet, I have to
create a new Runnable to invoke on the UI thread if the map is going to get
updated. I'll need to have another look at this.

Cheers,

Brian
bduff.vcf (text/x-vcard, 627 B)
begin:vcard 
n:Duff;Brian
tel;cell:+44 (0)7712 191939
tel;work:+44 (0)118 9244901
x-mozilla-html:TRUE
url:http://wired.st-and.ac.uk/~briand
org:<a href="http://www.oracle.com"><img border="0" src="http://wired.st-and.ac.uk/~briand/oralogo.gif"></a><br><center><IMG SRC="http://www.btinternet.com/~dubh/images/phoenix.gif"></center>;<center><a href="http://www.oracle.com/tools/jdeveloper/">Oracle JDeveloper</a></center>
version:2.1
email;internet:[email protected]
title:Software Engineer
adr;quoted-printable:;;Building 520=0D=0AOracle Parkway;Reading;Berkshire;RG6 1RA;UK
fn:Brian Duff
end:vcard