| 291 | type_ (type) {} |
| 292 | |
| 293 | void FrameIn() { |
| 294 | ++frames_in_; |
| 295 | time_t now = time (0); |
| 296 | |
| 297 | if (now == last_time_) { |
| 298 | return; |
| 299 | } |
| 300 | |
| 301 | if (! (frames_in_ % 10)) { |
| 302 | GMPLOG (GL_INFO, type_ << ": " << now << " Frame count " |
| 303 | << frames_in_ |
| 304 | << "(" << (frames_in_ / (now - start_time_)) << "/" |
| 305 | << (30 / (now - last_time_)) << ")" |
| 306 | << " -- " << frames_out_); |
| 307 | last_time_ = now; |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | void FrameOut() { |
| 312 | ++frames_out_; |