private:\r
context() : executor_(L"diagnostics")\r
{\r
- executor_.start();\r
executor_.begin_invoke([this]\r
- {\r
+ { \r
+ SetThreadPriority(GetCurrentThread(), BELOW_NORMAL_PRIORITY_CLASS);\r
window_.Create(sf::VideoMode(600, 1000), "CasparCG Diagnostics");\r
window_.SetPosition(0, 0);\r
window_.SetActive();\r
class line : public drawable\r
{\r
boost::optional<diagnostics::guide> guide_;\r
- boost::circular_buffer<std::pair<float, bool>> line_data_;\r
+ boost::circular_buffer<std::pair<double, bool>> line_data_;\r
\r
- std::vector<float> tick_data_;\r
+ std::vector<double> tick_data_;\r
bool tick_tag_;\r
color c_;\r
public:\r
line_data_.push_back(std::make_pair(-1.0f, false));\r
}\r
\r
- void update(float value)\r
+ void update(double value)\r
{\r
tick_data_.push_back(value);\r
}\r
\r
- void set(float value)\r
+ void set(double value)\r
{\r
tick_data_.clear();\r
tick_data_.push_back(value);\r
target.Draw(*guide_);\r
\r
glBegin(GL_LINE_STRIP);\r
- glColor4f(c_.red, c_.green, c_.blue, 1.0f); \r
+ glColor4f(c_.red, c_.green, c_.blue, 0.8f); \r
for(size_t n = 0; n < line_data_.size(); ++n) \r
if(line_data_[n].first > -0.5)\r
- glVertex3f(x+n*dx, std::max(0.05f, std::min(0.95f, (1.0f-line_data_[n].first)*0.8f + 0.1f)), 0.0f); \r
+ glVertex3d(x+n*dx, std::max(0.05, std::min(0.95, (1.0f-line_data_[n].first)*0.8 + 0.1f)), 0.0); \r
glEnd();\r
\r
glEnable(GL_LINE_STIPPLE);\r
, name_(parent_printer_ ? narrow(parent_printer_()) : "")\r
, counter_(0){}\r
\r
- void update(const std::string& name, float value)\r
+ void update(const std::string& name, double value)\r
{\r
lines_[name].update(value);\r
}\r
\r
- void set(const std::string& name, float value)\r
+ void set(const std::string& name, double value)\r
{\r
lines_[name].set(value);\r
}\r
lines_[name].set_color(c);\r
}\r
\r
- void guide(const std::string& name, float value)\r
+ void guide(const std::string& name, double value)\r
{\r
lines_[name].guide(diagnostics::guide(value)); \r
}\r
context::register_drawable(impl_);\r
}\r
\r
-void graph::update_value(const std::string& name, float value)\r
+void graph::update_value(const std::string& name, double value)\r
{\r
if(impl_)\r
{ \r
});\r
}\r
}\r
-void graph::set_value(const std::string& name, float value)\r
+void graph::set_value(const std::string& name, double value)\r
{\r
if(impl_)\r
{ \r
});\r
}\r
}\r
-void graph::add_guide(const std::string& name, float value)\r
+void graph::add_guide(const std::string& name, double value)\r
{ \r
if(impl_)\r
{ \r