Changeset 3013

Show
Ignore:
Timestamp:
12/13/99 11:48:34 (15 years ago)
Author:
ucaccsp
Message:

Fix CPU usage of UI

Location:
rat/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/MODS

    r3011 r3013  
    542542          a file descriptor. 
    543543        - Added null audio interface for devices not attainable. 
    544         - Safety net when opening an interfac   - Fix LSR and DLSR in our reception report packets (maybe) 
     544        - Safety net when opening an interfac   - Fix LSR and DLSR in our reception report packets (maybe) 
    545545        - Fix muting of individual participants 
    546546        - Update mbus command set 
     
    782782        - Fixed spurious debugging code in the windows audio driver which 
    783783          would cause an infinite loop if activated (rare, but could happen). 
    784         - Split converter code up into convert_*.[ch] and added convert_types.h  
     784        - Split converter code up into convert_*.[ch] and added convert_types.h  
    785785        - Fixed repair when next unit on playout buffer is less than expected  
    786786          length away. 
     
    794794        * Released 2 June 1999 
    795795 
    796 v4.0.4  - Add ability to receive on one port yet send to another, requested 
     796v4.0.4  - Add ability to receive on one port yet send to another, requested 
    797797          by Henning Schulzrinne. Usage: "rat addr/rx_port/tx_port" 
    798798        - Compilation fixes for Irix 6.5 contributed by Bob Olson. 
     
    842842        - Cleanup documentation of the audev_*.c files 
    843843        - Fix loading of preferences: powermeter, lip-sync 
    844         - Fix the fileboxes on the Windows release version. 
     844        - Fix the fileboxes on the Windows release version. 
    845845        - Fix spurious transmission of tool.rat.lecture.mode() mbus messages  
    846846        - Fix spurious transmission of rtp.source.active() mbus messages when 
     
    878878        - Move source_check_buffering into rtp_callback. 
    879879        - Fix mixer handling overlapping blocks. 
    880         - Changed win32 audio read and write methods, added audio event to 
    881           reduce CPU usage.  Fixed handling of non-blocksize writes. 
    882         - Modified auddev_null on Win32 to use WaitForSingleObject rather 
    883           than Sleep on Win32.  Reduces CPU considerably. 
     880        - Changed win32 audio read and write methods, added audio event to 
     881          reduce CPU usage.  Fixed handling of non-blocksize writes. 
     882        - Modified auddev_null on Win32 to use WaitForSingleObject rather 
     883          than Sleep on Win32.  Reduces CPU considerably. 
    884884        - Added colour to powermeters. 
    885885        - Add fixed size packet buffer to make for easy discards when media  
     
    893893        * 5 October 1999 
    894894 
    895 v4.1.1  - Added transcoder audio device.  Contributed by Michael Wallbaum  
     895v4.1.1  - Added transcoder audio device.  Contributed by Michael Wallbaum  
    896896          <wallbaum@informatik.rwth-aachen.de> 
    897897        - Now send RTP BYE packets on exit 
     
    899899          interpolation and extrapolation correctly after last consistency  
    900900          update. 
    901         - Unrolled loops in extrapolation converter.   
     901        - Unrolled loops in extrapolation converter.   
    902902        - Replaced divisions in interpolation converter that were not powers 
    903903          of two with a multiplication scaling factor and a power of 2  
     
    923923        * 2 November 1999 
    924924 
    925 v4.1.2  - Added echo suppression back, it fell out of code base at some point. 
     925v4.1.2  - Added echo suppression back, it fell out of code base at some point. 
    926926        - Fix ui sending input and output gain values before it's got values 
    927927          from audio engine.  Was happening because scale widget invokes  
     
    958958        - toged_cont is now no. thrown on ground in last 8 packets. 
    959959        - Global change of integer types, and removal of compatibility defines: 
    960                 u_int8  -> u_int8_t 
    961                 u_int16 -> u_int16_t 
    962                 u_int32 -> u_int32_t 
     960                u_int8  -> u_int8_t 
     961                u_int16 -> u_int16_t 
     962                u_int32 -> u_int32_t 
    963963          and the same for the signed varients. 
    964964        - And change them all to be uint32, etc 
     
    999999        - Set thread priority of media engine to THREAD_PRIORITY_ABOVE_NORMAL  
    10001000          on Windows. 
    1001  
     1001        - Fix CPU usage of UI 
    10021002 
    10031003 
  • rat/trunk/main_ui.c

    r3008 r3013  
    125125        while (!should_exit) { 
    126126                timeout.tv_sec  = 0; 
    127                 timeout.tv_usec = 0; 
     127                timeout.tv_usec = 20000; 
    128128                mbus_recv(m, NULL, &timeout); 
    129129                mbus_send(m); 
     
    138138                timeout.tv_sec  = 0; 
    139139                timeout.tv_usec = 40000; 
    140         /* Throttle CPU usage */ 
     140                /* Throttle CPU usage */ 
    141141#ifdef WIN32 
    142142                /* Just timeout waiting for event that never happens */