mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 20:44:44 -04:00
1. Implement partial refresh. 2. Implement refresh canceling mechanism. 3. Refactor some parts of the gui and display code. ad 1. - Detect parts of the screen changed since last update and merge them into bigger regions. These regions defines parts of the context sent to the display. - Refresh the region covering all of the parts since this is the most time consuming part and the size of the refreshed region doesn't change the time much. - Refresh the whole screen if deep refresh is requested and previously fast refresh was used. This is needed to prevent unwanted artifacts in some cases. ad 2. - Separate display update and refresh logic. - Divide image display message handling into two handlers, one updating and other one refreshing the screen. - Add cancel refresh message and use it to cancel refresh during update. - Store sum of refresh regions gathered during updates to refresh them all at once at the end.
24 lines
1.7 KiB
C++
24 lines
1.7 KiB
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#define DEBUG_APPLICATION_MANAGEMENT 0 /// show verbose logs in ApplicationManager
|
|
#define DEBUG_BLUETOOTH_HCI_COMS 0 /// show communication with BT module - transactions
|
|
#define DEBUG_BLUETOOTH_HCI_BYTES 0 /// show communication with BT module - all the HCI bytes
|
|
#define DEBUG_CELLULAR_UART 0 /// show full modem uart communication
|
|
#define DEBUG_DB_MODEL_DATA 0 /// show messages prior to handling in service
|
|
#define DEBUG_EINK_REFRESH 0 /// show refresh information
|
|
#define DEBUG_FONT 0 /// show Font debug messages
|
|
#define DEBUG_GUI_TEXT 0 /// show basic debug messages for gui::Text - warning this can be hard on cpu
|
|
#define DEBUG_GUI_TEXT_LINES 0 /// show extended debug messages for gui::Text - lines building
|
|
#define DEBUG_GUI_TEXT_CURSOR 0 /// show extended debug messages for gui::Text - cursor handling
|
|
#define DEBUG_INPUT_EVENTS 0 /// show input events prints in system
|
|
#define DEBUG_MISSING_ASSETS 0 /// show debug concerning missing assets
|
|
#define DEBUG_SCOPED_TIMINGS 0 /// show timings in measured functions
|
|
#define DEBUG_SETTINGS_DB 0 /// show extensive settings logs for all applications
|
|
#define DEBUG_SERVICE_CELLULAR 0 /// show various logs in cellular service
|
|
#define DEBUG_SERVICE_MESSAGES 0 /// show messages prior to handling in service
|
|
#define DEBUG_SIM_IMPORT_DATA 0 /// show messages connected to sim data imports
|
|
#define DEBUG_TIMER 0 /// debug timers system utility
|