Massive refactoring of xenia::ui and GL swap behavior.
This seems to dramatically improve most games (especially with --vsync=false), though it may cause swap issues with others. New code should be easier to port, and enables elemental-forms to be drawn for any emulator UI.
This commit is contained in:
@@ -33,6 +33,10 @@ std::unique_ptr<ProfilerDisplay> Profiler::display_ = nullptr;
|
||||
|
||||
#if XE_OPTION_PROFILING
|
||||
|
||||
bool Profiler::is_enabled() { return true; }
|
||||
|
||||
bool Profiler::is_visible() { return MicroProfileIsDrawing(); }
|
||||
|
||||
void Profiler::Initialize() {
|
||||
// Custom groups.
|
||||
MicroProfileSetEnableAllGroups(false);
|
||||
@@ -168,6 +172,8 @@ void Profiler::Present() {
|
||||
|
||||
#else
|
||||
|
||||
bool Profiler::is_enabled() { return false; }
|
||||
bool Profiler::is_visible() { return false; }
|
||||
void Profiler::Initialize() {}
|
||||
void Profiler::Dump() {}
|
||||
void Profiler::Shutdown() {}
|
||||
|
||||
Reference in New Issue
Block a user