overte/script-archive/example/ui/LODManagerExample.js
2016-04-26 11:18:22 -07:00

16 lines
No EOL
549 B
JavaScript

LODManager.LODIncreased.connect(function() {
print("LOD has been increased. You can now see "
+ LODManager.getLODFeedbackText()
+ ", fps:" + LODManager.getFPSAverage()
+ ", fast fps:" + LODManager.getFastFPSAverage()
);
});
LODManager.LODDecreased.connect(function() {
print("LOD has been decreased. You can now see "
+ LODManager.getLODFeedbackText()
+ ", fps:" + LODManager.getFPSAverage()
+ ", fast fps:" + LODManager.getFastFPSAverage()
);
});