Changes between Initial Version and Version 1 of Ticket #514, comment 7


Ignore:
Timestamp:
Mar 20, 2014, 3:51:50 AM (11 years ago)
Author:
Steven Levine

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #514, comment 7

    initial v1  
    1 The code you have found has problems.  It looks like it was implemented while the programmer was not really paying attention.  The nested loop is not needed and the timer needs to initialized with InitITimer().  That said while the code is hardly optimal, it's not going to break anything.
     1The code you have found has problems.  It looks like it was implemented while the programmer was not really paying attention.  The nested loop is not needed.  That said while the code both non-optimal and confusing, it's not going to break anything.
    22
    33!IdleIfNeeded() reduces the thread priority when an operation takes too long.  This improves UI responsiveness.  !SleepIfNeeded() exists for the same reason.  Which one is best for a given operation is a judgement call.