Official eMule-Board: [fix?] Real Queuesize Fix - Official eMule-Board

Jump to content


Page 1 of 1

[fix?] Real Queuesize Fix

#1 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 12 August 2005 - 11:52 AM

Since a few versions, eMule features a "queue-overflow" mechanism, though, this is annoying for a lot of users, they want their set limit to be kept, that's why I thought of changing that code:

UploadQueue.cpp:

Quote

  // cap the list
    // the queue limit in prefs is only a soft limit. Hard limit is 25% higher, to let in powershare clients and other
    // high ranking clients after soft limit has been reached
    uint32 softQueueLimit = thePrefs.GetQueueSize();
    uint32 hardQueueLimit = thePrefs.GetQueueSize() + max(thePrefs.GetQueueSize()/4, 200);

into:

Quote

  // cap the list
    // the queue limit in prefs is only a soft limit. Hard limit is 25% higher, to let in powershare clients and other
    // high ranking clients after soft limit has been reached
    uint32 hardQueueLimit = thePrefs.GetQueueSize();
    uint32 softQueueLimit = thePrefs.GetQueueSize()/1.25f;
    if(hardQueueLimit - softQueueLimit < 200)
        softQueueLimit = hardQueueLimit-200;   


This will make hardlimit to be kept and at least 200 places as "buffer" in the queue :cool2:


BTW is /1.25f much slower than *0.8f?
0

#2 User is offline   SlugFiller 

  • The one and only master slug
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6988
  • Joined: 15-September 02

Posted 13 August 2005 - 01:01 PM

Quote

BTW is /1.25f much slower than *0.8f?

About 5-10 times slower, last I checked. Besides, since it's ints, combinations of << and >> would be better suited for math with constants.
Why haven't you clicked yet?

SlugFiller rule #1: Unsolicited PMs is the second most efficient method to piss me off.
SlugFiller rule #2: The first most efficient method is unsolicited eMails.
SlugFiller rule #3: If it started in a thread, it should end in the same thread.
SlugFiller rule #4: There is absolutely no reason to perform the same discussion twice in parallel, especially if one side is done via PM.
SlugFiller rule #5: Does it say "Group: Moderators" under my name? No? Then stop telling me about who you want to ban! I really don't care! Go bother a moderator.
SlugFiller rule #6: I can understand English, Hebrew, and a bit of Japanese(standard) and Chinese(mandarin), but if you speak to me in anything but English, do expect to be utterly ignored, at best.
0

#3 User is offline   CiccioBastardo 

  • Doomsday Executor
  • PipPipPipPipPipPipPip
  • Group: Italian Moderators
  • Posts: 5541
  • Joined: 22-November 03

Posted 15 August 2005 - 12:25 AM

You can also use 2 int operators instead of 1 floating, like doing a multiplication for 4 (thus maybe better a << 2) and dividing by 5 in this particular case.
The problem is not the client, it's the user
0

#4 User is offline   zz 

  • -
  • PipPipPipPipPipPipPip
  • Group: Debugger
  • Posts: 2014
  • Joined: 30-November 02

Posted 15 August 2005 - 11:37 AM

When I tested this, it mostly obeyed the soft limit, and hardly ever went up to the hard limit. The soft limit can be passed for a while right after you started the application, and just after you've rearranged your file ul priorities, but after a while it will creep down to the soft limit again.

So I think the change above will cause the queue to be at 80% of the limit most of the time, which wouldn't be good.

/zz B)
ZZUL - get control of your uploads: ZZUL Forum
0

#5 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 15 August 2005 - 12:17 PM

It depends on which CS you use, the Pawcio CS boosts new clients so the queue will soon fill up... that's why I called it a FiX with a questionmark... there WILL be people that will use it and other won't - personally, I like it my way, too...
0

#6 User is offline   zz 

  • -
  • PipPipPipPipPipPipPip
  • Group: Debugger
  • Posts: 2014
  • Joined: 30-November 02

Posted 15 August 2005 - 02:18 PM

Yeah that would cause a problem, that's true. Should be ok in standard eMule though.

/zz B)
ZZUL - get control of your uploads: ZZUL Forum
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users