Commit 4462619 1 parent 54494eb commit 4462619 Copy full SHA for 4462619
File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -163,9 +163,9 @@ class FrameInfoManager {
163
163
// call this immediately before "swap buffers"
164
164
void endFrame (backend::DriverApi& driver) noexcept ;
165
165
166
- details::FrameInfo const & getLastFrameInfo () const noexcept {
167
- // if pFront is not set yet, return front() but in this case front(). valid will be false
168
- return pFront ? *pFront : mFrameTimeHistory . front ();
166
+ details::FrameInfo const getLastFrameInfo () const noexcept {
167
+ // if pFront is not set yet, return FrameInfo(). But the ` valid` field will be false in this case.
168
+ return pFront ? *pFront : details::FrameInfo ();
169
169
}
170
170
171
171
utils::FixedCapacityVector<Renderer::FrameInfo> getFrameInfoHistory (size_t historySize) const noexcept ;
Original file line number Diff line number Diff line change @@ -525,16 +525,8 @@ void FRenderer::renderStandaloneView(FView const* view) {
525
525
1'000'000'000.0 / mDisplayInfo .refreshRate ),
526
526
mFrameId );
527
527
528
- // This need to occur after the backend beginFrame() because some backends need to start
529
- // a command buffer before creating a fence.
530
- mFrameInfoManager .beginFrame (driver, {
531
- .historySize = mFrameRateOptions .history
532
- }, mFrameId );
533
-
534
528
renderInternal (view);
535
529
536
- mFrameInfoManager .endFrame (driver);
537
-
538
530
driver.endFrame (mFrameId );
539
531
}
540
532
}
You can’t perform that action at this time.
0 commit comments