Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

157 Neutral

About bilsa

  • Rank
  1. Hi, Thanks, I was thinking along the same lines, however I was also thinking about setting up a "scheduling service" via .NET remoting, and let clients connect and request for jobs to execute. And as long as the clients are still connected, the job is still running. If a connection is lost, the client has a timeout of lets say 2 min to reconnect and inform the scheduler that it is still running, otherwise the scheduler service sets the job as timed out. Of course there is still a problem if the scheduler service would crash or fail or loose connection to the database - however, as I figure it the service would be some kind of "critical service" in this setup, and if it dies it is up to the administrator to manually restore / fix the jobs.
  2. Hi! I have a problem with an application that uses a database for storing the state of different arbitary jobs to run. The issue I'm having is that if a job of a specific type is running, no other job with the same type may start, and sometimes if the application is forcibly shutdown - the state of an ongoing job might not be updated. For example: I have 3 jobs in the database, "Job1" was started but due to the application beeing forcibly shutdown, it will never complete and the status will be kept at "Running" - which will not allow the "Job3" to start, since they both have the same job type "JobType1": Job1 | JobType1 | Running Job2 | JobType2 | Finished Job3 | JobType1 | Pending I'm thinking I could add something like a "Timeout" value, which says how long a job may be running until it is treated as "Closed" and if it is already running it is terminated, thus allowing "Job3" to begin. However, I would preffer that jobs are allowed to run any amount of time, until it is actually completed. So, can someone give me input on how this can be done, or at least point me in the right direction - I'm guessing there should be some relevant concept solving this kind of synchronization issue. Basically what I want is to have a database with jobs, and multiple applications consuming the jobs. Thank you.
  3. Hi, thanks for the help, but I don't want to be that specific, that I need to know that it's a button, I might for example want to click on some other control. I mean, it should be possible to emulate the clicks in a generic way, I do have the handle of the main window.
  4. Hi! What I would like to do is to click on a button in a java window, doing this programmatically from a c++ application - using the windows API, SendMessage / PostMessage. I have managed to send a "mouse left button click" to the window. This works, when I keep the mouse over the button that I want to click. But if I don't hold the mouse over that button it doesn't klick it, instead it clicks wherever I hold the mouse. So it seems that the WM_LEFTBUTTONDOWN / WM_LEFTBUTTONUP does indeed work, but the lParam (coordinates for the click) are not used, but instead they are fetched some other way. I have also tried sending WM_MOUSEMOVE before the WM_LEFTBUTTONDOWN, in order to move the mouse to that position before clicking it. But that one doesn't seem to do any good. Does anyone have some experience with sending win32 "messages" via the SendMessage / PostMessage methods to a Java window? Would really appreciate some thoughts on this. Thank you
  5. Hi, WCF also has support for "Duplex Bindings", which makes it possible for WCF to call methods on the Client - the client provides the WCF service with an interface. (That is if your are going to look into modifying the service...)
  6. Hi, I didn't know where to put this question, but here I go: I have come to a "design" with 3 webservices which in turn are dependant on eachother, but not as static references but dynamic, like this: IService1 { void DoSomething(string sIService2Url) {...} } IService2 { //This is usually called by IService1 void DoSomethingElse() {...} void DoSomething(string sIService3Url) {...} } IService3 { ... } Do you get what I mean? IService1 is dependant on receiving a valid url to IService2, the actual interface contract for IService2 is agreed on between the two services. Would you say that this kind of service contracts should be avoided? The option we have is to merge the the services into one, which I would say is feasible for IService2 and IService3, but not really for IService1 and IService2. Generally, I've never had to design webservices like this - I would just reference the required IService2 implementation as a webservice reference in the IService1, but the issue is that we would need to provide different implementations of this, chosen by the client. Doe anyone know what this "concept" would be called - so that I can read more about it? Thank you.
  7. bilsa

    Geometry batching?

    Yeh, that slot memory setup is interesting. I'm thinking I could live with some memory waste in the slots. (anyway it sounds cool "having written a gpu memory slot system" :P) Ok, big thanks to everyone ;)
  8. bilsa

    Geometry batching?

    Ok, good to hear. I already started on implementing the sorting mechanism/state tree anyways :) Another thing I was thinking about was how to best manage the vertexbuffers. For static that won't be moving I figure it would be best to store the data depending on spatial positioning. Since spatially close objects probabilly will be rendered simultaneously anyway. Then after dividing the vertexbuffers to spatial areas, also try to sort vertices of the same type close to eachother in the vertexbuffers. So, basically I was thinking to have something like this: World Map: -------------------------------| | | | | | | | VB1 | VB2 | | | | |______________|_______________| | | | | | | | VB3 | VB4 | | | | | | | |------------------------------| Now assuming that each vertexbuffer has some "optimal" size. Then also put the data that has same vertex structure close to eachother in the buffers. Do you think this will affect performance much at all? VladR, so you used only one large vertex buffer? did you sort the vertex data according to the vertex structures in that buffer? (btw, I know that I whouldn't worry about this now... yada yada... despite I want to do this)
  9. bilsa

    Geometry batching?

    Yeh, I would think so too. Does anyone know if the size matters? or is it that performance is worse when getting over some size?
  10. Hi there! I somewhat recall there was an old thread started by Yann - the graphics guru :P - where he described his shader system along with a batching system for geometry. If I'm not entirely mistaken the batching was sorted using some modified version of Radix sort to minimize state changes during the rendering of a frame. Then there was the use of geometry slots pointing to a vertexbuffer. As I understood this each geometry had it's place in a large vertexbuffer shared by many different geometrys. This was to reduce the change of vertexbuffer states. What I'm wondering is if there really is any big performance gain nowadays in batching multiple objects into one batch, when speaking of models consisting of lets say 5000~10000 triangles? And something I didn't really get is how such catching would be implemented most efficiently, as I see it the most optimal way would be to fill a vertexbuffer with spatially local geometry that will most likely be rendered together. For static geometry that never move in a map it could be somewhat achieved... Anyway, is there really any point in wasting much effort and time into caching into large vertexbuffers?
  11. Hi again, I have stumbled upon an issue iäve never really thought much about. I'm having a class structure like this: class A implements Comparable<A> { } class C extends A implements Comparable<C> { } Which apparently is not allowed :( Currently I need to use the old non generic Comparable interface, which forces me to use the "instanceof" operator. Is there any other sollution to my problem?
  12. Oh dang, that 64mb memory could indeed be a problem for some serious game. Thx for the great info!
  13. Hey! I was wondering if anyone could tell me if there is any big performance difference between running the opengl application as an applet or as a new window? Is it serious enough to make some quake2 clone run smooth? Thx! [Edited by - bilsa on March 2, 2007 11:48:59 AM]
  14. Hey, does anyone know if there is a way to make an opengl application with c# and make it useable as an applet in IE? (Something similar to java applets.) Peace out!
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!