Revision 3221,
395 bytes
checked in by mattausch, 16 years ago
(diff) |
added some statistics stuff, but ssao slower than before (probably because made ssao width and intensity variable and not hardcoded anymore) from >180 frames to < 130 frames!!!
|
Line | |
---|
1 | #include "StatsWriter.h"
|
---|
2 | #include "Camera.h"
|
---|
3 | #include "Vector3.h"
|
---|
4 | #include <sstream>
|
---|
5 |
|
---|
6 | using namespace std;
|
---|
7 |
|
---|
8 |
|
---|
9 | namespace CHCDemoEngine
|
---|
10 | {
|
---|
11 |
|
---|
12 |
|
---|
13 | StatsWriter::StatsWriter(const std::string &filename):
|
---|
14 | mFile(filename.c_str())
|
---|
15 | {
|
---|
16 | }
|
---|
17 |
|
---|
18 |
|
---|
19 | StatsWriter::~StatsWriter()
|
---|
20 | {
|
---|
21 | mFile.close();
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | void StatsWriter::WriteFrameStats(const FrameStats &stats)
|
---|
26 | {
|
---|
27 | mFile << stats << endl;
|
---|
28 | }
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.