Skip to content
Snippets Groups Projects
Commit 0a2e9a47 authored by jsiegle's avatar jsiegle
Browse files

Fixed problems with background CPU consumption

parent 6c42ebae
Branches
Tags
No related merge requests found
......@@ -42,6 +42,8 @@ LfpDisplayCanvas::LfpDisplayCanvas(LfpDisplayNode* n) : processor(n),
std::cout << "Setting displayBufferSize on LfpDisplayCanvas to " << displayBufferSize << std::endl;
totalHeight = nChans*(interplotDistance) + plotHeight/2 + headerHeight;
refreshMs = 100; // override 5 s refresh rate
}
......
......@@ -28,7 +28,7 @@
OpenGLCanvas::OpenGLCanvas() : //OpenGLComponent(OpenGLComponent::OpenGLType::openGLDefault, true),
scrollPix(0), scrollTime(0), scrollDiff(0), originalScrollPix(0),
scrollBarWidth(15), PI(3.1415926), showScrollTrack(true),
animationIsActive(false), refreshMs(100)
animationIsActive(false), refreshMs(5000)
{
loadFonts();
......
......@@ -111,9 +111,9 @@ protected:
bool animationIsActive;
private:
int refreshMs;
int refreshMs;
private:
void loadFonts();
......
......@@ -59,6 +59,8 @@ InfoLabel::InfoLabel() : xBuffer(10), yBuffer(10)
"DISCLAIMER: This software should be used for demonstration and testing purposes only. "
"It is not fit for conducting scientific experiments of any kind."
;
refreshMs = 100; // override 5 s refresh rate
}
InfoLabel::~InfoLabel()
......
......@@ -169,7 +169,7 @@ void UIComponent::resized()
if (messageCenter != 0)
messageCenter->setBounds(6,h-35,w-241,30);
// for debugging purposes:
// for debugging qpurposes:
if (false)
{
dataViewport->setVisible(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment