Commit 08a35a22 authored by Jan Möbius's avatar Jan Möbius

Framerate restriction via scripting

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3245 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 231563f6
......@@ -582,6 +582,19 @@ void Core::updateView() {
//-----------------------------------------------------------------------------
void Core::restrictFrameRate( bool _enable ) {
OpenFlipper::Options::restrictFrameRate( _enable );
}
//-----------------------------------------------------------------------------
void Core::setMaxFrameRate( int _rate ) {
OpenFlipper::Options::maxFrameRate( _rate );
OpenFlipper::Options::restrictFrameRate( true );
}
//-----------------------------------------------------------------------------
void
Core::clearAll()
{
......
......@@ -294,6 +294,12 @@ public slots:
/// Set the drawMode ( ; separated list )
void setDrawMode(QString _mode);
/// Enable or disable framerate restriction
void restrictFrameRate( bool _enable );
/// set the maximal framerate ( automatically enables framerate restriction )
void setMaxFrameRate( int _rate );
/** @} */
//===========================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment