Decouple MicroProfileFlip from Profiler::Present (and start a new frame in XE_SWAP)
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user