aircraft.nas: performance optimization
listeners at sim/rendering/precipitation-aircraft-enable triggered excessively (every loop)
This commit is contained in:
parent
e3bb3b9042
commit
a79a91a2aa
1 changed files with 4 additions and 2 deletions
|
@ -972,11 +972,13 @@ var rain = {
|
|||
|
||||
me.flowN.setDoubleValue(ias < me.threshold ? 0 : time * 0.5 + ias * NM2M * dt / 3600);
|
||||
me.rainingN.setDoubleValue(me.rain);
|
||||
me.enableN.setBoolValue(0);
|
||||
if (enableN.getBoolValue())
|
||||
me.enableN.setBoolValue(0);
|
||||
} else {
|
||||
me.flowN.setDoubleValue(0);
|
||||
me.rainingN.setDoubleValue(0);
|
||||
me.enableN.setBoolValue(1);
|
||||
if (enableN.getBoolValue() != 1)
|
||||
me.enableN.setBoolValue(1);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue