Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-18-12, 06:00 AM   #1
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
OnUpdate efficiency

Hello!

I use an OnUpdate script to display fps/latency/hour+minutes in my UI. It updates every second, mainly for the fps.

I was wondering though. Considering latency is only updated every 10 seconds, and there is no use in getting for the time every second when it only updates every minute, would it be more efficient to use 3 separate OnUpdate loops - one which updates the hour/minute value every 30 secs, one which updates the latency every 10 secs, and one which handles the fps as well as displaying the other values - or should I stick to just 1?

The difference is minimal, of course, it's mostly a matter of principle.

Thanks!
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » OnUpdate efficiency


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off