Tiled texture demo

Here’s another texture demo, this time with a much bigger image:
myweb.dal.ca/mkiefte/TiledTextureDemo.zip
I think the map is scanned, so it isn’t that great to begin with, but in true Soviet tradition, it is very big if not beautiful. Quantity has a quality of its own.

On my laptop this is till still pretty good, but not as peppy as the previous version. I can’t test this on a Windows machine, or even a desktop for that matter, so you guys will have to tell me what it’s like.

In a private message, Joel just recently suggested an optimization that would improve the startup and I initially nixed the idea, but I think he’s right. ColorConvertOp will probably work.

The current implementation takes advantage of an optimization suggested by Joel involving the use of byte[] directly instead of writing to a ByteBuffer, and uses draw lists which will be optimized for some hardware (but not all).

I have a sense of how this will work in VASSAL. If this demo works out okay for everyone…

  • M.

The link indicate to me : Not page found …

I think that the url is not this one provided …

Doesn’t work on XP64 – going to the old 32 now…

From: messages-bounces@forums.vassalengine.org [mailto:messages-bounces@forums.vassalengine.org] On Behalf Of Michael Kiefte
Sent: Tuesday, May 13, 2008 4:17 PM
To: VASSAL Engine Forums Mailing List
Subject: Re: [Developers]Re: Tiled texture demo

Which link did you try?

This one should work:

http://myweb.dal.ca/mkiefte/TiledDemo.zip

The first one I posted was wrong.

I think that the url is not this one provided …


Member of The Vassal Project Forge

Post generated using Mail2Forum (mail2forum.com)

XP, 2.8Gz single core, 1Gb RAM.

Took about a minute to load, ran like a dog using 100% CPU for any manipulation of the image. Delay of 5-10 seconds before redisplay of any movement. Used about 300Mb of Ram.

B.

On May 13, 2008, at 1:51 PM, Michael Kiefte wrote:

Mac OS X 10.5.2
Java 1.5
Intel Core 2 duo laptop, 2.4GHz, 4GB RAM
Graphics: GeForce 8600M GT, 256MB
1600x1024 external display

Observations:

  • Loaded in about 20-30 seconds.
  • Once loaded it was pretty zippy, moving and rotating very nicely.
  • Zooming was smooth, but required a lot of mouse movement, so it
    seemed very slow when zoomed out. When zoomed in, the rate of changed
    seemed more reasonable.
  • Zooming out too far resulted in the entire image disappearing, but
    it came back with zooming in.

Console printed:
java.awt.Rectangle[x=0,y=0,width=6912,height=2816]
9987 == 9987
(repeated many times)


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On my other machine where it works
Vista32 laptop, 3GB ram, 1.6Ghz dual core Pentium mobile, Nvidia 7900Go
512mb

Took about 20secs before it started up, after that ran without no problem -
CPU was chugging around 60% but didn’t have any problems though, using 500mb
of ram

Post generated using Mail2Forum (mail2forum.com)

Thus spake “mkiefte”:

For me, panning and zooming are very jerky; rotation is too slow to be
usable.

Intel Core 2 Duo T7300 @ 2.00GHz
2GB RAM
Linux 2.6.24.5
Intel 965GM video chipset


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Joel Uckelman:

Image loading is really fast, though, it takes about 7 seconds for me.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On May 13, 2008, at 3:35 PM, Joel Uckelman wrote:

I bet this last item is the culprit.
My machine and Tim McCaron’s both had pretty hefty graphics cards.

Maybe I’ll try this on some other hardware tonight.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

I think so, and it is probable that many people do not have a graphics card
and use their motherboard’s OGC which makes for a good lowest common
denominator in benchmarking this

No worries about not having a 64 windows version. I doubt the results would
have been much use, probably flies, but would have been nice to see on a SLI
rig

Post generated using Mail2Forum (mail2forum.com)

On May 13, 2008, at 6:48 PM, Thomas Russ wrote:

Mac OS X, 10.4.11
1.8GHz G5 PPC, 2GB RAM, faster hard drive.

java version “1.5.0_13”
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_13-
b05-241)
Java HotSpot™ Client VM (build 1.5.0_13-121, mixed mode, sharing)

GeForce FX 5200, 64MB graphics card.

Fails with a link error. Are the libraries per chance Intel
architecture only?
The file in question does exist:

ls -lF /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/

Libraries/libawt.jnilib
-rwxr-xr-x 1 root wheel 3973168 Nov 26 18:33 /System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib*

./runmac.sh

Exception in thread “main” java.lang.UnsatisfiedLinkError: /System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/
libawt.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.security.action.LoadLibraryAction.run
(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries
(NativeLibLoader.java:38)
at sun.awt.DebugHelper.(DebugHelper.java:29)
at java.awt.Component.(Component.java:547)
at TextureDemo.main(TextureDemo.java:101)


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

I ran another test of this on my work system and the results were surprising because the system is set to using a dedicated hardware accelerated OpenGL CAD graphics card instead of defaulting to software control apps, so I would have expected it to run with out a hitch but unfortunately it was barely even useable and took about 30 secs to load

Intel Xeon proc. 3.0ghz single core, 4GB rdram, 512MB Nvidia Quadro 3000, WinXP

Post generated using Mail2Forum (mail2forum.com)

Nice J

Ok, here are my results from my 3 systems using the latest demo

1: Home desktop
WinXP64, Pentium D Dual core 3.4GHZ, 4GB DDR2 667 Ram, 2x Nvidia 7600GT 256mb (SLI Mode configured)
Start up took 12 seconds
Pan, Zoom and Rotate instantaneous, no jerking very smooth

  1. Laptop
    Win Vista32, Pentium Mobile Dual core 1.6GHZ, 3GB DDR2 Ram (speed unknown), Nvidia Geforce 8600GS M 512mb (though it was a 7900 till I looked – oh well at least I have DirectX10 enabled card available J )
    Start up took 14 seconds
    Pan, Zoom and Rotate instant, occasional jaggy on map edges if you look very hard for it while moving about

  2. Work desktop
    WinXP32, Pentium Xeon 3.0 GHZ, 4GB RDRAM RIMM 3200 (400mhz) ram, Nvidia Quadro FX 3000 512mb Hardware accelerated Open GL
    Start up took 17 seconds
    Pan, Zoom and Rotate – mostly smooth say 80-90% with occasional jerks/momentary hangs

Follows more or less results I’d expect with the setups with #3 coming last being the oldest system. #1 is the second oldest proc and system setup but with slightly more mem and the swapping GPU’s helps it edge out #2

From: messages-bounces@forums.vassalengine.org [mailto:messages-bounces@forums.vassalengine.org] On Behalf Of Michael Kiefte
Sent: Wednesday, May 14, 2008 2:50 PM
To: VASSAL Engine Forums Mailing List
Subject: Re: [Developers]Tiled texture demo

I’ve added support for Win64 and PowerPC in the new download:
http://myweb.dal.ca/mkiefte/TiledDemoB0.zip

Here’s what you type on the command line:
Linux 32-bit: ./run.sh
Linux 64-bit: ./run64.sh
Mac: ./runmac.sh
PowerPC: ./runppc.sh
Windows 32-bit: run.bat
Windows 64-bit: run64.bat

Remember, I know it looks funny. What I need to know right now is how responsive it is to panning (left-button drag), scaling (middle-button drag), and rotating (right-button drag).

Also how long is it taking you to start?

Thanks guys.

The original is still here for comparison:
#2: http://myweb.dal.ca/mkiefte/TiledDemo.zip

What you’ll notice with the first one above is that it looks funny. What I’d like to know is whether the responsiveness is better than the second one. I’d also be curious about load time.

Sorry, still no PowerPC or Windows 64-bit. I’ll get on that.

  • M.

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

What looks funny, the tile seams?

All of the affine transformations are as usable for me as they were
originally again. I think we should do something slightly different
w/r/t how mouse input it translated into movement, because it doesn’t
always have the right feel (I susepct that these things need to be
locally nonlinear, especially at the start of translation, or for
scaling over some range of scale factors). But this is not a performance
issue. The performance is quite good for me again.

Load time is the same for me as after the my load optmizations,
about 7 seconds.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

Could you describe for me what you did differently (so I don’t have
do download both over the hotel wireless just so I can diff the two
source files)?

Also, I find it reassuring that 9987 continues to be self-equivalent,
as that would be problematic for us if some integer lost that property
at run-time. :slight_smile:


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

Black squares? I don’t see any black squares. I see 1-px wide black
seams between the texture tiles.

It’s been cold and rainy in Portugal. It’s 16C here right now; meanwhile,
Amsterdam, which is typically cold and rainy, has been beautiful while
I’ve been away.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Used on my XP Windows Laptop computer Core Duo 1.8 GHz, 1 Go RAM with a video card nvidia 512… it takes 10 seconds to load.

After this, all is “direct live” motion when moving.

The only “problem” or curious behavior is when i zoom out … at a certain point nothing appear and the map vanish …

The zoom in and out management is a little difficult to handle … maybe better using the wheel of the mouse should be more user friendly … :wink: