Decouple MicroProfileFlip from Profiler::Present (and start a new frame in XE_SWAP)

This commit is contained in:
Dr. Chat
2016-02-07 19:23:05 -06:00
parent b696c645f5
commit 4335e41c14
3 changed files with 6 additions and 1 deletions

View File

@@ -236,7 +236,6 @@ void Profiler::set_window(ui::Window* window) {
void Profiler::Present() {
SCOPE_profile_cpu_f("internal");
MicroProfileFlip();
#if XE_OPTION_PROFILING_UI
if (!window_ || !drawer_) {
return;
@@ -247,6 +246,8 @@ void Profiler::Present() {
#endif // XE_OPTION_PROFILING_UI
}
void Profiler::Flip() { MicroProfileFlip(); }
#else
bool Profiler::is_enabled() { return false; }