EXP-700 WIP SLPlugin(s) takes high CPU%
clamp maximum framerate of slplugin to 100Hz also added assert to catch cases where we're requesting infinite frameratemaster
parent
c7a2f5c4fb
commit
70a872c4a2
|
|
@ -410,7 +410,7 @@ void LLPluginProcessChild::receiveMessageRaw(const std::string &message)
|
|||
}
|
||||
else if(message_name == "sleep_time")
|
||||
{
|
||||
mSleepTime = parsed.getValueReal("time");
|
||||
mSleepTime = llmax(parsed.getValueReal("time"), 1.0 / 100.0); // clamp to maximum of 100Hz
|
||||
}
|
||||
else if(message_name == "crash")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -927,6 +927,7 @@ void LLPluginProcessParent::receiveMessage(const LLPluginMessage &message)
|
|||
}
|
||||
|
||||
// Send initial sleep time
|
||||
llassert_always(mSleepTime != 0.f);
|
||||
setSleepTime(mSleepTime, true);
|
||||
|
||||
setState(STATE_RUNNING);
|
||||
|
|
|
|||
Loading…
Reference in New Issue