Changeset 33:13058587f077 in rrlib_util


Ignore:
Timestamp:
22.09.2011 21:21:15 (8 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

'old_value_weight' in tFPSComputer can now be set (in constructor)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tFPSComputer.cpp

    r27 r33  
    3636using namespace rrlib::util; 
    3737 
    38 tFPSComputer::tFPSComputer(long long int check_interval_ms): 
     38tFPSComputer::tFPSComputer(long long int check_interval_ms, float old_value_weight): 
    3939    current_fps_check(tTime::Now()), 
    4040    last_fps_check(current_fps_check), 
     
    4343    frame_counter(0.), 
    4444    fps(0.), 
    45     old_value_weight(0.75), 
     45    old_value_weight(old_value_weight), 
    4646    check_interval_ms(check_interval_ms) 
    4747{ } 
    4848 
    49 tFPSComputer::tFPSComputer(const tTime &current_time, long long int check_interval_ms): 
     49tFPSComputer::tFPSComputer(const tTime &current_time, long long int check_interval_ms, float old_value_weight): 
    5050    current_fps_check(current_time), 
    5151    last_fps_check(current_time), 
     
    5454    frame_counter(0.), 
    5555    fps(0.), 
    56     old_value_weight(0.75), 
     56    old_value_weight(old_value_weight), 
    5757    check_interval_ms(check_interval_ms) 
    5858{ } 
  • tFPSComputer.h

    r27 r33  
    4343{ 
    4444public: 
    45   tFPSComputer(long long int check_interval_ms = 1000); 
     45  tFPSComputer(long long int check_interval_ms = 1000, float old_value_weight = 0.75); 
    4646 
    47   tFPSComputer(const rrlib::util::tTime &current_time, long long int check_interval_ms = 1000); 
     47  tFPSComputer(const rrlib::util::tTime &current_time, long long int check_interval_ms = 1000, float old_value_weight = 0.75); 
    4848 
    4949  inline void IncrementFrameCounter() 
Note: See TracChangeset for help on using the changeset viewer.