mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +02:00
More profiling ranges
This commit is contained in:
parent
9f4fb0e8bd
commit
b662ae4cfa
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,7 @@ static bool isBadPose(vr::HmdMatrix34_t* mat) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OpenVrDisplayPlugin::beginFrameRender(uint32_t frameIndex) {
|
bool OpenVrDisplayPlugin::beginFrameRender(uint32_t frameIndex) {
|
||||||
|
PROFILE_RANGE_EX(__FUNCTION__, 0xff7fff00, frameIndex)
|
||||||
handleOpenVrEvents();
|
handleOpenVrEvents();
|
||||||
if (openVrQuitRequested()) {
|
if (openVrQuitRequested()) {
|
||||||
QMetaObject::invokeMethod(qApp, "quit");
|
QMetaObject::invokeMethod(qApp, "quit");
|
||||||
|
@ -243,6 +244,7 @@ void OpenVrDisplayPlugin::hmdPresent() {
|
||||||
void OpenVrDisplayPlugin::postPreview() {
|
void OpenVrDisplayPlugin::postPreview() {
|
||||||
// Clear
|
// Clear
|
||||||
{
|
{
|
||||||
|
PROFILE_RANGE_EX(__FUNCTION__, 0xff00ff00, (uint64_t)_currentFrame->frameIndex)
|
||||||
// We want to make sure the glFinish waits for the entire present to complete, not just the submission
|
// We want to make sure the glFinish waits for the entire present to complete, not just the submission
|
||||||
// of the command. So, we do a clear here right here so the glFinish will wait fully for the swap.
|
// of the command. So, we do a clear here right here so the glFinish will wait fully for the swap.
|
||||||
glClearColor(0, 0, 0, 1);
|
glClearColor(0, 0, 0, 1);
|
||||||
|
|
Loading…
Reference in a new issue