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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user