Make toggling the performance measurements a BoolProperty of RenderEngine

This commit is contained in:
Alexander Bock
2016-11-05 16:23:51 +01:00
parent 85f298a659
commit c469be26c3
8 changed files with 36 additions and 68 deletions

View File

@@ -19,13 +19,8 @@ helper.setCommonKeys = function()
)
openspace.bindKeyLocal(
"F2",
"openspace.setPerformanceMeasurement(true)",
"Enables performance measurements"
)
openspace.bindKeyLocal(
"F3",
"openspace.setPerformanceMeasurement(false)",
"Disables performance measurements"
helper.property.invert("RenderEngine.performanceMeasurements"),
"Toogles performance measurements that shows rendering time informations"
)
openspace.bindKeyLocal("t", "openspace.toggleFrametimeType(1)")