Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2
1  Java Game APIs & Engines / Tools Discussion / Re: Anyone use jUnit? on: 2004-05-14 13:32:07
Using automated tests takes some getting used to, but once you start you'll never go back. And JUnit is the authority in this area, so yah it's good.

Test suites do take some maintenance: normally if you change the behaviour of a method/class, you only have to update the client code, now you also have to update the tests. But this is trivial compared to the benefits.

With a comprehensive test suite, you're free to make major implementation modifications without fear, and without the need to perform extensive manual testing afterwards (as long as your tests accurately represent how you're using the code in the project itself). This is even more benificial in team development, were developer B can modify developer A's code without fear of breaking the behaviour.

I also use unit tests to help in design: by writing the test case up front, I get a better idea of how the class will probably be used, and what clients may end up doing to try and break it.

There's nothing like the warm fuzzy of changing a thousand lines of code and then having 0 errors in your suite of 500 tests.
2  Discussions / Miscellaneous Topics / Re: Eclipse 3.0 M8 is out on: 2004-03-31 15:18:51
Key bindings are all configurable in Eclipse now, too, btw.

The new default bindings have been done to better prevent collisions between all the plugins out there.
3  Discussions / Miscellaneous Topics / Re: Eclipse 3.0 M8 is out on: 2004-03-31 00:30:28
The 'build' actions have been modified in this release. There's now a 'Clean' action instead of the previous 'Rebuild'.

As a result, 'Build' and 'Build All' are always disabled when you're in autobuild mode, unless you do a 'clean'.

If you're in autobuild, the manual build options are really quite pointless, anyway (I never used them in 2 years of development).
4  Games Center / Archived Projects / Re: Need feedback for Othello game on: 2004-03-25 23:20:42
Well other than needing to be Webstarted (hint hint)...

The flickering red outline when you move the cursor over a square is pretty annoying. I'd prefer a clearer (and more steady) indication that it's a valid move.

The AI seems nicely done: quite competetive. I remember writing an Othello player once, and it was certainly a challenge. Did you implement a depth-based search, or does is just follow some standard optimal rules?

All in all, a good job, I'd say.
5  Game Development / Performance Tuning / Re: Enhanced loop in Tiger on: 2004-03-25 13:34:09
Probably has more to do with the JIT. AFAIK, the server VM is much more proactive at determining which methods it should JIT compile. Whereas the client VM waits until it actually sees a hotspot before it compiles.

Try moving the code into a method, calling it a couple of times, THEN perform the benchmark. This should give the client VM time to compile the method, if this is indeed what's happening.
6  Game Development / Performance Tuning / Re: Concurrency problem (again) on: 2004-03-15 19:52:18
Iterator.remove() is safe to call while performing at iteration (that's the reason it exists), so that shouldn't be it.

Do you by chance have another thread playing with the list?
7  Java Game APIs & Engines / Java 3D / Re: Critical features to boost java3d on: 2004-03-15 19:49:08
Actually, of primary importantce, it's critically lacking is an active development team Smiley
8  Java Game APIs & Engines / Tools Discussion / Re: Scripting languages on: 2004-03-13 12:21:00
I've used BeanShell in a couple of projects. It's quite nice, except for performance: it's extensive use of reflection to access Java classes ends up creating a lot of small objects (eg. every call must create an object[] to pass the parameters). This causes the GC to kick in too frequently for any chance at realtime performance (if you call a script every frame, anyway). This was under 1.4, so maybe 1.5 has some upgrades that can handle this better, haven't checked.

One other language I looked into (but didn't get a chance to use in practice), was DynamicJava. It has many (though not all) of BeanShells language features, but compiles down to bytecodes, so it's fairly optimal performance-wise. The project seems inactive now (last update was mid-2002), but it appeared stable an feature complete. Plus the source looked fairly clean, so hacking it shouldn't be too scary.  Interpreter is a big bigger (~450k).

Snacks for thought.
9  Game Development / Game Play & Game Design / Re: Conversations, where to store? on: 2004-03-13 12:07:02
Storing them on the client should be fine, and there is a way to keep it secure.

Instead of the client just sending the final result, have it send the entire 'path' of the conversation (I'm assuming you're using an option/menu-based system here). If the client sends every option the user selected, in order, then the server can validate these against it's copy of the conversation: if the client has altered the convo in any way, it'll be quite apparent.
10  Java Game APIs & Engines / Java 2D / Re: Another idea, another test... on: 2004-02-25 01:28:01
705 fps, Win2K, Althon XP 2200, GeForce 3 (non-MX)

So pretty much like before...but task mgr shows almost exclusively all in kernel time.
11  Java Game APIs & Engines / Java 2D / Re: Another idea, another test... on: 2004-02-21 22:50:28

would that by any chance be a GF3 MX ? (MX, the well known acronym for sh** - I mean, poor Tongue)

Are you challenging the size of my thingy---uh, video card? have at ye!

No, it's a non-MX. After a reboot (been running for over 10 days now, amazing) I got  685fps. Then after dropping my screen res (from 1600x1200 to 1027x768) I was getting ~700fps.

I haven't tuned this thing since I got a new mobo, so susepct I'm missing a setting somewhere, as it seems fill-limited somehow. Hmm, something to play with now.

12  Java Game APIs & Engines / Java 2D / Re: Another idea, another test... on: 2004-02-21 19:29:48
I got 675fps sustained, almost all in kernel time (>90%).

This on an AlthonXP 2200, GeForce3 (+latest denonator), Win2k, Sun JRE 1.4.2,.
13  Discussions / Miscellaneous Topics / Re: Little rant on: 2004-02-18 17:26:19
I love circles...

You're describing Smalltalk (the original OO language), Cas. The language grammer describes statements as noun-verb pairs. So if you have a string 'name', you can do things like:

name lengthOf - calls the 'lengthOf' method on name
name + name2 - calls the '+' method on name sending name2 as a parameter

Though smalltalk doesn't call them methods: they're events.

It would be interesting to see if one could create a Smalltalk-like language that compiles to bytecodes. Hmm...
14  Discussions / General Discussions / Re: Will this be possible in future versions of Ja on: 2004-01-07 01:47:54
There's a setting in Preferences->Java->Organize Imports that allows you to specify how many classes imported from the same package will cause a generic * import instead.
15  Game Development / Newbie & Debugging Questions / Re: Iterator stopped working! on: 2004-01-06 11:45:17
Changing a collection while iterating through its elements is inherenty unsafe, and officially unsupported by all java.util collection objects.  Iterator was created to address just this, as it provides a safe way to remove elements while iterator (unlike enumerator).

I'd guess they tightened up some code in the recent JRE upgrades, and your code as listed should (by spec) result in an exception. So bascially you were relying on undocumented behaviour.
16  Java Game APIs & Engines / Tools Discussion / Re: Finding undocumented methods on: 2004-01-02 17:05:36
In the latest Milestone build of 3.0 (M6, I believe), there's a compiler option in Preferences->Java->Compiler->JavaDoc to generate errors/warnings for missing javadoc comments (based on visibility). Just turn that on and do a build, all your undocumented members and methods should show up in the Problems view.
17  Discussions / General Discussions / Re: Will this be possible in future versions of Ja on: 2004-01-01 20:09:55
Or, rather than making changes to the language, you could use an IDE that manages imports for you. Using Eclipse, for example, I rarely even think about imports anymore (one keystroke adds imports automatically, all I have to do is resolve ambiguities).
18  Game Development / Performance Tuning / Re: Slow array filling on: 2003-10-09 13:29:57
This is probably due to 'cache trashing'.

In the single loop case, you're alternating between arrays, which causes a cache fault, forcing it to both save out the changes to the first array, then load up the second. In the two loop case, a single array stays in the cache until it's done with, resulting in less hits to the system memory.

So what you're basically seeing is the difference between direct memory access and cached memory access.
19  Game Development / Networking & Multiplayer / Re: UDP with a TCP control channel on: 2003-08-07 14:11:59
Tribes 2 implemented a network model like this:

They broke network data down into different categories and handled each one differently, depending on the application needs. Seemed to work pretty darn good, too.
20  Discussions / Miscellaneous Topics / Re: name of the editor that on: 2003-07-19 14:46:11
The platform doesn't contain the Java tools, you need to add the JDT to it, or just download the JDK (which includes the platform, jdt, plus tools for creating eclipse plugins).
21  Java Game APIs & Engines / Java 2D / Re: Movement inside a 2D rendering loop on: 2003-06-20 00:20:05
No, it's more of a human factors issue. Tests have shown that that human eye can't 'see' at any more than 60Hz, so anything faster is really just information being lost.
22  Java Game APIs & Engines / Java 3D / Re: Behavior Activation from an outside object on: 2003-06-20 00:09:09
In that case, you need a polling behaviour: one that triggers based on time and checks for relevant external events. For example, if you wanted to trigger based on network traffic, I'd setup a behaviour that wakes every 100ms (or whatever resolution you want), and checks for network traffic/queued events, then enables the relevant behaviours from there.
23  Java Game APIs & Engines / Java 3D / Re: Behavior Activation from an outside object on: 2003-06-19 13:53:40
That code doesn't work, because as you mentioned, only a behaviour (or other wakeupcondition) can trigger another. You HAVE to have the behaviour waiting on some condition.

What I did was have a behaviour that ran every frame, and it checked for various conditions that would result in other behaviours being triggered. This because the suite of available WakeupConditions didn't fulfil all my needs.
24  Java Game APIs & Engines / Java 3D / Re: Behavior Activation from an outside object on: 2003-06-19 03:46:03
I spent many an hour trying to find a good solution for this. The only solutions I came up with were: a) run the triggering code from within a behavior itself, or b) use AWT events and use a WakeupOnAWTEvent.

a) doesn't work well for intensive code, and b) can be tricky to make work, as AWT events come from other sources as well. Take your pick Smiley
25  Java Game APIs & Engines / Java 3D / Re: Toggle the branchGroup's visiblity .. on: 2003-05-22 12:38:04
You could use a ViewSpecificGroup (introduced in 1.3). This allows you to control which View(s) a group is rendered to.
26  Game Development / Performance Tuning / Re: Inlining on: 2003-04-22 15:12:07
It used to be that final would help with inlining, but not since Hotspot 1.3, I believe.  Hotspot is now smart enough to consider a method for inlining as long as no other loaded classes override it (basically, no other variations of the method exist).

Short form: only use final when it makes sense from a design perspective.
27  Java Game APIs & Engines / Tools Discussion / Re: loading all projects in eclipse ,how to preven on: 2003-04-12 20:43:30
Eclipse always loads all the projects it knows about. This usually isn't a problem, since the files themselves are only loaded on demand, so there's no overhead unless they're actually used.

What can get annoying is that you can end up with a lot of projects in the list. To avoid this, you can close the projects (right-click, close), and then filter out all closed projects. Or, if you right-click on the project, there's a 'Go Into' option, which makes that project the root node of the naviagator tree.

Check out the search page, there's tonnes of info on this archvies in the news search.
28  Java Game APIs & Engines / Java 3D / Re: How to invalidate a scene in java3d? on: 2003-04-04 02:59:41
If you make a change to the scene graph, the screen will automatically be refreshed.

To trigger the change, you use Behaviors, which are objects in the graph that get called when certain events happen: like a certain amount of time passing, or a change in the graph.
29  Game Development / Performance Tuning / Re: Exceptions and performance on: 2002-11-02 12:46:50
A seminar at the last JavaOne covered this situation. There is still a small overhead in the try/catch handling itself, but Cas is right, most of the expense is in filling in the stack trace. A constant throwable should give you better performance.
30  Java Game APIs & Engines / Tools Discussion / Re: Java Editor on: 2002-11-01 14:51:45
Eclipse has a nice debugger. Easy to use, plus lots of features I haven't seen in other debuggers. Very configurable views, too.
Pages: [1] 2
Riven (201 views)
2019-09-04 15:33:17

hadezbladez (4922 views)
2018-11-16 13:46:03

hadezbladez (1815 views)
2018-11-16 13:41:33

hadezbladez (5196 views)
2018-11-16 13:35:35

hadezbladez (1025 views)
2018-11-16 13:32:03

EgonOlsen (4397 views)
2018-06-10 19:43:48

EgonOlsen (5230 views)
2018-06-10 19:43:44

EgonOlsen (2973 views)
2018-06-10 19:43:20

DesertCoockie (3876 views)
2018-05-13 18:23:11

nelsongames (4308 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!