Ok,
I am (hopefully) going to get into the habit of tossing ideas out here on the forum and seeing what kind of response they generate.
The reason is that I am interested in Java Game development, and am inexperienced. I was going to back end the game I am modeling with java, and CORBA a connection to a C++ game client. But Java seems to have some 3d functionality now. if I get to the point where my skills surpass what java 3d apis can do for me, then I will turn back to C++.
Until then, threads:
What pros/cons are there to dynamically changing (via a command console, or an AI method) thread priorities during MMO server operations? I can think of several ways to do this, but is it worth it?
Currently I am working on developing the back end to a MMO game. It will start out a a generic engine allowing objects (be they players, NPCs, structures, or other game objects) to interact and move in a 3D environment. The environment will not be rendered at server side (of course), but the locations of all interactive objects will be. A thread will run each volume (location) and that thread will communicate with the game controller (main) via a container object.
(Interjection: !@#$ windows…cant use my vi nav keys…)
Here are my (ignorant ways) thoughts on how to do this:
- A config file, read in before the threads start, setting the thread start priorities for the game.
- A config file for each group of threads, that I can change, and every 1000 cycles or so (10,000, 100,000, etc) they check the file, and set their own priority according to what is in there.
- I send requests via the abovementioned container object to the thread to lift or lower priorities.
- I combine #2 and #3 above, by uing a file, and then sending a generic “check the priority file” message to the threads that I want prioritized.
- I set threshold limits to what is in the container objects, and if one gets backed up too much, the program automatically adjusts the priorities. I think this is the most dangerous method of all, but verry slick sounding.
SO, what d oyou think?
If all of this is stuff that I shouldn’t worry about, tell me. Be abusive if you want.
Thanks!
Jared
