Skip to content

Commit

Permalink
core: be more agressive in disabling fpe and denormals
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 4, 2025
1 parent e577c8a commit 2f83de2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/plugins/score-lib-process/Process/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <score/widgets/SetIcons.hpp>

#include <ossia/detail/algorithms.hpp>
#include <ossia/detail/disable_fpe.hpp>

#include <QObject>

Expand Down Expand Up @@ -64,6 +65,7 @@ ProcessModel::ProcessModel(
, m_size{200, 100}
, m_loops{false}
{
ossia::disable_fpe();
con(metadata(), &score::ModelMetadata::NameChanged, this,
[this] { prettyNameChanged(); });
connect(this, &Process::ProcessModel::resetExecution, this, [this] {
Expand Down Expand Up @@ -103,6 +105,7 @@ void ProcessModel::setDurationAndShrink(const TimeVal& newDuration) noexcept
ProcessModel::ProcessModel(DataStream::Deserializer& vis, QObject* parent)
: Entity(vis, parent)
{
ossia::disable_fpe();
vis.writeTo(*this);
con(metadata(), &score::ModelMetadata::NameChanged, this,
[this] { prettyNameChanged(); });
Expand All @@ -111,6 +114,7 @@ ProcessModel::ProcessModel(DataStream::Deserializer& vis, QObject* parent)
ProcessModel::ProcessModel(JSONObject::Deserializer& vis, QObject* parent)
: Entity(vis, parent)
{
ossia::disable_fpe();
vis.writeTo(*this);
con(metadata(), &score::ModelMetadata::NameChanged, this,
[this] { prettyNameChanged(); });
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/score-plugin-ysfx/YSFX/ProcessModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include <core/document/Document.hpp>

#include <ossia/detail/disable_fpe.hpp>

#include <QApplication>
#include <QDebug>
#include <QFileInfo>
Expand Down Expand Up @@ -67,6 +69,7 @@ ProcessModel::~ProcessModel()

void ProcessModel::setScript(const QString& script)
{
ossia::disable_fpe();
auto arr = script.toStdString();
auto& config
= score::GUIAppContext().applicationPlugin<YSFX::ApplicationPlugin>().config;
Expand Down

0 comments on commit 2f83de2

Please sign in to comment.