Dragondarn / spartanui

Automatically exported from code.google.com/p/spartanui
0 stars 0 forks source link

Add Latency indicator to castbar #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This was mentioned in the forums for version 2.6.2, but didn't see a ticket 
to track it.  It may already be in....

Please add an indicator of the latency in the castbar component to the unit 
frames similar to how Quartz implements this in their casting bar.  My 
guess is that it takes the casting time, and a snapshot of the latency via 
the GetNetStats() api call, and adjusts the bar background accordingly.

The built in oUF system has the capacity to show the latency via it's 
safezone property of the castbar, but it utilizes the above GetNetState() 
call, which is only updated every 30 seconds.

To be more accurate, alternate solutions seem to effectively capture the 
latency between the UNIT_SPELLCAST_SEND and UNIT_SPELLCAST_START events and 
use that as the user's latency.

Someone in the oUF forums 
(http://www.wowinterface.com/forums/showthread.php?t=29933) posted an 
update to the castbar.lua file at:
http://www.wowinterface.com/forums/attachment.php?
attachmentid=3887&d=1264211527

Original issue reported on code.google.com by dngre...@gmail.com on 1 Apr 2010 at 5:17