diff options
author | Mark Janes <mark.a.janes@intel.com> | 2017-03-10 03:12:04 -0800 |
---|---|---|
committer | Mark Janes <mark.a.janes@intel.com> | 2017-06-19 14:04:50 -0700 |
commit | 8a7dc8ccfa0a10d93e53c1f0ab1c3dfd7b6dd9c9 (patch) | |
tree | 83c608983523af2c2559d9e8623a7e400cbde196 /retrace/daemon/glframe_retrace.cpp | |
parent | 21080f6a6dcf015110d689575ec795621e7fdc93 (diff) |
OpenFile: Display frame count during retrace
This information helps the user select an interesting frame for
analysis.
Requested-by: Eero Tamminen <eero.t.tamminen@intel.com>
Diffstat (limited to 'retrace/daemon/glframe_retrace.cpp')
-rw-r--r-- | retrace/daemon/glframe_retrace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/retrace/daemon/glframe_retrace.cpp b/retrace/daemon/glframe_retrace.cpp index 105ddd4f..58929bb7 100644 --- a/retrace/daemon/glframe_retrace.cpp +++ b/retrace/daemon/glframe_retrace.cpp @@ -140,7 +140,7 @@ FrameRetrace::openFile(const std::string &filename, delete call; if (frame_boundary) { ++current_frame; - callback->onFileOpening(false, false, current_frame * 100 / framenumber); + callback->onFileOpening(false, false, current_frame); if (current_frame == framenumber) break; } @@ -178,7 +178,7 @@ FrameRetrace::openFile(const std::string &filename, // record the final render as ending a render target region render_target_regions.push_back(RenderId(m_renders.size() - 1)); - callback->onFileOpening(false, true, 100); + callback->onFileOpening(false, true, current_frame); } int |