Sign in to follow this  
H_o_p_s

Unity [java] Java Tactics Demo

Recommended Posts

It does not work on my machine, but then again I do not think I have the JVM installed. So I will install that now.

[edit]

Ok got that installed. Definitly add a note that you need to have the JVM installed for it to work [wink]. Anyways, I get around 12-16 FPS. The animation is smooth, but the map is not being drawn right. Here is what I am talking about:


See that white bar at the bottom? I hit 'S' and it did not help any. Not only that the framerate went up, but the Load was sporadic. When it was at 0%, all was well for the seconds it stayed, then it was mostly above 150%.

When I went above 66fps with the '+' key it crashed, but did not die. It went blank, but the music still played. Of which I'd like to say the music worked great and sounds good. If I lower the fps below 2, it crashes again, but the load goes down a lot (40% ish)

The camera mode worked good as well, but the Enter key did not work at all. What is it supposed to do? I noticed that the keypad + and - do not work, so I tried using 'enter'.

My Specs:
P4 3.2 GHZ
1GB Ram
128MB 9600 Pro
Win XP SP2


Looks good!

- Drew

[Edited by - Drew_Benton on February 8, 2005 9:09:07 PM]

Share this post


Link to post
Share on other sites
Thanks!
I'll see if it is something on my end also, I sent this out to like 3 forums, so I should know here soon if anybody can run this :)

Share this post


Link to post
Share on other sites
Thanks Visage! Do you happen to know what JVM your running? You might be able to find out by something like "java -version" int the command line.

8fps doesn't seem right... because I can get between 100 and 300 on my mac with
1.33GHz
512mbram
64mb mobile radeon 9700 (I think... def. 64mb mobile radeon)

Share this post


Link to post
Share on other sites
The white bar at the bottom of the screen is the Load bar... when not in my smartrender mode it should give a good representation of how much of the loop is being used, versus how much time is allocated from the UPS variable.

visage: thanks again! I don't know why yours isn't working right... I have 1.4.2_05 as well, so it's not a J2SE 1.5.0 thing... hmmmm....

Share this post


Link to post
Share on other sites
Quote:

The white bar at the bottom of the screen is the Load bar... when not in my smartrender mode it should give a good representation of how much of the loop is being used, versus how much time is allocated from the UPS variable.


[embarrass] I feel so retarded now. I knew that showed the load, but I never made the connection [lol]. *Sigh*

[edit]
Quote:

The crashing but not crashing as far as I know is because I have my SoundManager class in a different thread... so maybe if the mainloop dies, the sound thread still goes on...


Ok awesome, I see now. I think it could be my Intel just doesn't like Mac stuff? That could explain the reason for high load and low fps compared to your comp, even though mine seems like it would be faster. That or I need to configure the JVM. I just installed the newest version so it may not be top notch yet.

[edit]
Quote:
It is all done in standard java so it shouldn't be. I picked java specifically for the cross platformness of it.


Yea that would make sense that Java should be fine no matter what, sigh I need to get my head straight! Too much C++ [lol]. If I set to 12 FPS the load stays under 100%. That is my optimal performace. I noticed if I do raise it a lot, the animations slow down a lot.

[edit] One last thing as well. I got the enter to work. I just had to hoover over a character then hit enter [smile].

- Drew

Share this post


Link to post
Share on other sites
Quote:
Original post by Drew_Benton

When I went above 66fps with the '+' key it crashed, but did not die. It went blank, but the music still played. Of which I'd like to say the music worked great and sounds good. If I lower the fps below 2, it crashes again, but the load goes down a lot (40% ish)


The crashing but not crashing as far as I know is because I have my SoundManager class in a different thread... so maybe if the mainloop dies, the sound thread still goes on...

Thanks!

-=EDIT=-
Quote:
Original post by Drew_Benton
I think it could be my Intel just doesn't like Mac stuff?


It is all done in standard java so it shouldn't be. I picked java specifically for the cross platformness of it.

-=EDIT=-
Quote:
If I set to 12 FPS the load stays under 100%. That is my optimal performace. I noticed if I do raise it a lot, the animations slow down a lot.


Well, I think that the animations run between 50 and 100ms, so somewhere between 15 and 20 FPS should get all animation frames...

The enter only works when in cursor mode, by pressing space.

-=EDIT=-
Okay I think that some of the low fps here might be caused from the poor resolution timers available to windows machines... but I'll find out later with some more coding.

[Edited by - H_o_p_s on February 8, 2005 10:42:11 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by H_o_p_s
In JavaTactics.zip there are 3 files:
* JavaTactics.exe


WTF!!?!?

Share this post


Link to post
Share on other sites
I think your geocities link got /.ed. I've got some more room and bandwidth on my server if you'd like a temporary mirror. Just email me at whackjack@gmail.com.

Share this post


Link to post
Share on other sites
I know I posted already, but here's with the new version:

Initial FPS: 11-12 then jumps to 22 randomly, black bar above %Load bar
FPS without 12 and draws correctly
Music Played: True
Actor Moved: True

Operating System: Windows XP
Java Virtual Machine Version: 1.5.0.01 (Latest)
Clock Speed: 3207
RAM: 1GB
GPU: Ati 9600 Pro

Other Comments: Can you make a version that does not display and calculate that load bar at the bottom. I would like to see if my performance improves with that not on there. The SmartRender does not work well for me. The bottom of the map is cut off everytime I used it.

- Drew

Share this post


Link to post
Share on other sites
The Cutting off of the bottom map is caused by the developer (me -_-;) wanting the texts to redraw without having the entire map redraw. I'll change and add a version that does not have the load bar. Also, I found out that there were to flags that needed to be set in windows for the hardware acceleration with transparent images.

-Dsun.java2d.translaccel=true
-Dsun.java2d.ddforcevram=true

And also, I am now hosting this thread in my Journal

Please place all stuff there instead of this thread.

Thanks everybody!

(If a mod could lock this thread it would be nice)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this