Remove clipboard functionality and enhance performance monitoring features
- Deleted clipboard-related files (clipboard.cc, clipboard.h, clipboard.mm) to streamline the codebase. - Added a performance dashboard in the EditorManager to monitor performance metrics and improve user experience. - Integrated performance monitoring capabilities across various editors, allowing for detailed timing of critical operations. - Updated the graphics system with batch processing for texture updates, significantly improving rendering performance. - Introduced a memory pool allocator for efficient memory management during graphics operations.
This commit is contained in:
@@ -143,6 +143,13 @@ class Bitmap {
|
||||
*/
|
||||
void UpdateTexture(SDL_Renderer *renderer);
|
||||
|
||||
/**
|
||||
* @brief Queue texture update for batch processing (improved performance)
|
||||
* @param renderer SDL renderer for texture operations
|
||||
* @note Use this for better performance when multiple textures need updating
|
||||
*/
|
||||
void QueueTextureUpdate(SDL_Renderer *renderer);
|
||||
|
||||
/**
|
||||
* @brief Updates the texture data from the surface
|
||||
*/
|
||||
@@ -305,7 +312,7 @@ class Bitmap {
|
||||
* @param color ImVec4 color to hash
|
||||
* @return 32-bit hash value
|
||||
*/
|
||||
uint32_t HashColor(const ImVec4& color) const;
|
||||
static uint32_t HashColor(const ImVec4& color);
|
||||
};
|
||||
|
||||
// Type alias for a table of bitmaps
|
||||
|
||||
Reference in New Issue
Block a user