Page 1 of 1

alternative to GetTime()?

PostPosted: Thu Feb 18, 2016 4:04 am
by slipryy
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?

Re: alternative to GetTime()?

PostPosted: Thu Feb 18, 2016 6:30 am
by Rhena
The arg1 argument in an OnUpdate function says how much time has passed since the function was last called.

Re: alternative to GetTime()?

PostPosted: Thu Feb 18, 2016 7:36 am
by Athene
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

Re: alternative to GetTime()?

PostPosted: Thu Feb 18, 2016 9:35 am
by Marisi
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.