alternative to GetTime()?

alternative to GetTime()?

by slipryy » Thu Feb 18, 2016 4:04 am

oCB uses GetTime() which makes your castbar skip frames when your pc has been on for 5+ days

any1 know castbar that doesnt use it/any way to fix it?
slipryy
Senior Sergeant
Senior Sergeant
 

Re: alternative to GetTime()?

by Rhena » Thu Feb 18, 2016 6:30 am

The arg1 argument in an OnUpdate function says how much time has passed since the function was last called.
Author of LunaUnitFrames - The most advanced unit frames for classic WoW. Visit my GitHub page for them and some other tools i wrote.
Rhyna - Warrior | Nost PvP | Alliance
User avatar
Rhena
Sergeant Major
Sergeant Major
 

Re: alternative to GetTime()?

by Athene » Thu Feb 18, 2016 7:36 am

Try to change the timingModeOverride:
/console timingModeOverride x
0=default 1=GetTickCount 2=RDTSC 3=QueryPerformanceCounter 4=timeGetTime

https://docs.google.com/spreadsheets/d/ ... =0&vpid=A5

RDTSC should remain synced
<Genesis>
youtube.com/GenesisGuilde

MSBT [Continued] landed on Nostalrius, check it here: forum.nostalrius.org/viewtopic.php?f=63&t=1721
User avatar
Athene
Senior Sergeant
Senior Sergeant
 

Re: alternative to GetTime()?

by Marisi » Thu Feb 18, 2016 9:35 am

The 1.12 StatusBar widget runs into problems when you start using very large numbers for min and max values, like what oCB does when your system uptime gets too high. The workaround is to use some fixed boundary like SetMinMaxValues(1, 100) and update SetValue with the time passed since oCB.startTime as a percentage of 100.

Fix for oCB2: http://pastebin.com/GntmzrPa
Fix for oCB3 (latest): http://pastebin.com/j5muruYq

Replace your ...Interface\AddOns\oCB\casting.lua with the appropriate fixed version of casting.lua.
User avatar
Marisi
Grunt
Grunt
 


Return to Addons & macros