Renderer: Implement new render scheduling (#10936)
Implements a new render scheduling method, where we triple buffer when necessary. Enabled by default, improves FPS on underpowered devices. --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
parent
9856563f89
commit
8f948827a6
12 changed files with 209 additions and 84 deletions
|
|
@ -20,6 +20,8 @@
|
|||
#include <aquamarine/allocator/Swapchain.hpp>
|
||||
#include <hyprutils/os/FileDescriptor.hpp>
|
||||
|
||||
class CMonitorFrameScheduler;
|
||||
|
||||
// Enum for the different types of auto directions, e.g. auto-left, auto-up.
|
||||
enum eAutoDirs : uint8_t {
|
||||
DIR_AUTO_NONE = 0, /* None will be treated as right. */
|
||||
|
|
@ -160,6 +162,8 @@ class CMonitor {
|
|||
|
||||
PHLMONITORREF m_self;
|
||||
|
||||
UP<CMonitorFrameScheduler> m_frameScheduler;
|
||||
|
||||
// mirroring
|
||||
PHLMONITORREF m_mirrorOf;
|
||||
std::vector<PHLMONITORREF> m_mirrors;
|
||||
|
|
@ -228,7 +232,6 @@ class CMonitor {
|
|||
void onCursorMovedOnMonitor();
|
||||
|
||||
void debugLastPresentation(const std::string& message);
|
||||
void onMonitorFrame();
|
||||
|
||||
bool supportsWideColor();
|
||||
bool supportsHDR();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue