2023-10-06 11:12:59 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
2023-12-21 11:59:42 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2023-10-06 11:12:59 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick3D
|
2024-07-02 15:22:52 +00:00
|
|
|
import Quick3DAssets.EV_SportsCar_low
|
2023-10-06 11:12:59 +00:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property int fps: sView.renderStats.fps
|
|
|
|
property int frameTime: sView.renderStats.frameTime
|
|
|
|
property int syncTime: sView.renderStats.syncTime
|
|
|
|
property int renderTime: sView.renderStats.renderTime
|
|
|
|
|
|
|
|
required property View3D sView
|
|
|
|
|
|
|
|
width: col.width
|
|
|
|
height: col.height
|
|
|
|
radius: 8
|
|
|
|
color: "#99000000"
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: col
|
|
|
|
|
|
|
|
padding: 15
|
|
|
|
|
|
|
|
Text {
|
|
|
|
color: "#ffffff"
|
|
|
|
text: root.fps + " FPS (" + root.frameTime + " ms)"
|
|
|
|
font.pixelSize: 24
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
color: "#ffffff"
|
2024-07-02 15:22:52 +00:00
|
|
|
text: "Sync: " + root.syncTime + " ms" + "\nRender: " + root.renderTime + " ms"
|
2023-10-06 11:12:59 +00:00
|
|
|
font.pixelSize: 18
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: __materialLibrary__
|
|
|
|
}
|
|
|
|
}
|