Issue Details (XML | Word | Printable)

Key: GATH-90
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: loial
Reporter: Ken Allan (Norganna)
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Gatherer

Error when framerate is over 100fps

Created: 18/Oct/08 09:40 PM   Updated: 16/Apr/09 02:23 AM
Component/s: HUD
Affects Version/s: None
Fix Version/s: 3.1.13


 Description  « Hide
The HUD stops updating when the framerate exceeds 100fps

 All   Comments   Change History   Transitions   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
loial added a comment - 14/Mar/09 05:32 PM
There's an error in Gatherer_HUD.RunUpdate

the line:
if (rate > 100) then interval = 0
should read:
if (rate > 100) then private.interval = 0

i sugest changing this to the following:
if (rate > 100) then
private.interval = 0
else
if (rate > 10) then interval = rate/2
elseif (rate > 5) then interval = rate/4
elseif (rate > 3) then interval = 1
elseif (rate > 2) then interval = 0.5
else interval = 0.01 end

private.interval = ((private.interval * 100) + interval) / 101
end
if not private.interval then
private.interval = 1
end


loial added a comment - 14/Mar/09 06:33 PM
Changed RunUpdate so that it'll update when framerate is >100fps