Thread: Priority Queing

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Priority Queing 
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Priority Queing - An idea.

    Execution problems come when too many tasks are trying to be completed at the same time, or a high number of useless tasks are using hardware resources, stopping the important tasks from executing . An idea I would like to bring to RSPS is priority queing. High priority actions such as eating, fighting and walking will be executed before low priority actions such as trading and potion making. Although the difference will not be necessarily noticable (remember this all takes place in millionths of a second), it will help to ensure all high prority actions are carried out when they are supposed to, as many problems derive from un-responsive, usually important actions.

    There will be two pools of data. Lets call one pool HP and the other LP, standing for high and low priority respectively. Execution from the HP pool will always come before that of the LP pool. Meaning for an LP task to be executed, all HP tasks will need to have been completed before hand. This may cause 'delays' in LP execution, however, this method ensures all HP tasks will run as promptly and efficiently as is physically possible.

    Discuss, preferably comments from those with networking and extensive programming knowledge.

    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jun 2007
    Age
    26
    Posts
    3,007
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    I understand what you mean and it would be a good idea but would people know how to implement this properly?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Quote Originally Posted by Simon View Post
    I understand what you mean and it would be a good idea but would people know how to implement this properly?
    Doubtful, Graham is probably the only capable candidate due to his extensive knowledge of networking. We'll have to wait and see what he says.

    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    Just sort queued packets to execute in whatever order you want (well riotscape queues the packets).

    Although I don't see the point in this because I don't recall seeing any 'important tasks not executing.' Only time is when I an action is delayed, like only eating every lets say 1 second is allowed.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    Quote Originally Posted by filth jr View Post
    Just sort queued packets to execute in whatever order you want (well riotscape queues the packets).

    Although I don't see the point in this because I don't recall seeing any 'important tasks not executing.' Only time is when I an action is delayed, like only eating every lets say 1 second is allowed.
    I think you get the idea.
    Some tasks are more vital that they are completed on time than others, for instance, if the item coming out of your bank takes half a second longer, you won't notice it as much as if you cannot see the damage being hit on you for another half a second.

    Reply With Quote  
     

  6. #6  
    Valar Morghulis

    Laxika's Avatar
    Join Date
    Sep 2006
    Age
    29
    Posts
    2,813
    Thanks given
    1,804
    Thanks received
    274
    Rep Power
    2128
    Quote Originally Posted by Logical View Post
    I think you get the idea.
    Some tasks are more vital that they are completed on time than others, for instance, if the item coming out of your bank takes half a second longer, you won't notice it as much as if you cannot see the damage being hit on you for another half a second.
    If you have half second lag, then delete your server, and make a better one. It's a good idea, but packets not send out every 600ms? Try to make all packet handling faster, not just add priority to one and process it first...
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    27
    Posts
    1,358
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    High and low priority tasks would work but like you said you won't notice anything. If you are lagging then there is a problem which needs to be fixed. There is no point in adding a decent system to a shitty server, it just wouldn't work.

    Most people's server lag due to them being inefficient and slow because of the poor programming techniques used.


    My advise would be....

    Don't add something like this until the major issue's with todays server's are sorted (Use threads, fix synchronization, cache objects).
    Visit Rune Miracle [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member thiefmn6092's Avatar
    Join Date
    Dec 2006
    Age
    21
    Posts
    2
    Thanks given
    26
    Thanks received
    389
    Rep Power
    0
    You are allowing to much variable in the execution of packets. They should be processed in the order they are received. Also, the code for this would be slow as well; since it would be fairly complicated.
    [Only registered and activated users can see links. ]

    If you are a starter and want to learn rsps coding, i think that the server that fits most of your requests is deathlypvpz.
    I know some stone heads will flame and say its shit, i completely agree buy deathlypvpz is the best thing to start with.
    And you must do some Java courses in codecademy to improve yourself.
    Reply With Quote  
     

  9. #9  
    Community Veteran


    Join Date
    Jan 2008
    Posts
    2,664
    Thanks given
    493
    Thanks received
    627
    Rep Power
    980
    Something this complex is a waste of time.
    ~iKilem
    Reply With Quote  
     

  10. #10  
    Valar Morghulis

    Laxika's Avatar
    Join Date
    Sep 2006
    Age
    29
    Posts
    2,813
    Thanks given
    1,804
    Thanks received
    274
    Rep Power
    2128
    This isn't be too complex. You should filter the packets by packet types, and flag them as LP or HP. You should proccess HP ones first, then LP ones.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •