View Single Post
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