derive from GLKViewController
this handles resizing the view/framebuffer much better fixes #130, #131, #133, #118
This commit is contained in:
@@ -11,7 +11,7 @@ void FrameHistory::record(float zoom) {
|
||||
}
|
||||
|
||||
if (history.size() > 0 || history.back().z != zoom) {
|
||||
history.emplace_back(FrameSnapshot{static_cast<float>(platform::time() * 1000), zoom});
|
||||
history.emplace_back(FrameSnapshot{static_cast<float>(platform::elapsed() * 1000), zoom});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user