feat: Enhance Logging and Buffer Management in ROM and Editor Components

- Added critical logging for graphics buffer management in LoadAllGraphicsData to prevent data corruption during ROM loads.
- Updated logging levels from INFO to DEBUG across various components for consistency and to reduce log verbosity.
- Refactored texture creation and palette application logic to allow editors to manage their own rendering, improving flexibility and user experience.
- Improved background buffer handling to ensure fresh bitmap creation only when necessary, optimizing performance.
- Enhanced debugging output for canvas and performance tracking, aiding in better diagnostics during development.
This commit is contained in:
scawful
2025-10-07 11:56:53 -04:00
parent 167dc86819
commit 33f64f38a5
14 changed files with 132 additions and 119 deletions

View File

@@ -7,6 +7,7 @@
#include <sstream>
#include "app/gfx/memory_pool.h"
#include "util/log.h"
namespace yaze {
namespace gfx {
@@ -43,7 +44,7 @@ void PerformanceProfiler::EndTimer(const std::string& operation_name) {
if (timer_iter == active_timers_.end()) {
// During shutdown, silently ignore missing timers to avoid log spam
if (!is_shutting_down_) {
SDL_Log("Warning: EndTimer called for operation '%s' that was not started",
LOG_DEBUG("PerformanceProfiler", "EndTimer called for operation '%s' that was not started",
operation_name.c_str());
}
return;