mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-22 06:41:01 +00:00
Faster Preview View (#15884)
Co-authored-by: Kris Austin <kris.austin@gmail.com>
This commit is contained in:
1 parent
4ffba13210
commit
70bc02467b
37 files changed
+1740
-290
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
struct FrameTimeStats
|
||||
{
|
||||
double fps{ 0.0 };
|
||||
double average_ms{ 0.0 };
|
||||
double median_ms{ 0.0 };
|
||||
double p95_ms{ 0.0 };
|
||||
double p99_ms{ 0.0 };
|
||||
double max_ms{ 0.0 };
|
||||
};
|
||||
|
||||
// Nearest-rank percentiles, so every value is a measured frame time.
|
||||
FrameTimeStats frame_time_stats(std::vector<double> frame_ms);
|
||||
|
||||
// Loads the OrcaSliced Combo into a new project and turns the camera around it in Prepare, then in
|
||||
// Preview once sliced, then moves the layer slider through the layers, and reports the frame times and
|
||||
// render timings of the three scenes.
|
||||
void run_scene_benchmark();
|
||||
|
||||
} // namespace GUI
|
||||
} // namespace Slic3r
|
||||
Reference in new issue
Block a user