Commit Graph

76 Commits

Author SHA1 Message Date
147d373a5d Enhance logging across various services
- Added detailed logging to the ScriptEngineService to trace initialization status.
- Improved logging in SdlAudioService to track audio operations including initialization, shutdown, and playback functions.
- Enhanced SdlInputService with logging for key and mouse events, as well as state retrieval.
- Updated SdlWindowService to log window creation, destruction, and event polling.
- Added logging to ShaderScriptService for shader path loading and Lua state retrieval.
- Implemented logging in SwapchainService for swapchain operations, including creation, cleanup, and querying support details.
- Enhanced VulkanDeviceService with logging for device creation, shutdown, and memory type queries.
- Improved VulkanGuiService with logging for GUI initialization, frame preparation, and rendering operations.
2026-01-05 00:51:42 +00:00
19c369aac1 Refactor script services to improve Lua integration and logging
- Updated MeshService to use MeshPayload directly instead of script::MeshPayload.
- Enhanced SceneScriptService with detailed logging and error handling for Lua interactions.
- Introduced ILogger dependency in SceneScriptService and ShaderScriptService for better traceability.
- Implemented Lua state management in ScriptEngineService, allowing direct access to Lua functions.
- Added new types for mesh and scene management, including MeshPayload and SceneObject.
- Refactored shader loading logic in ShaderScriptService to utilize Lua for shader path retrieval.
- Created GuiInputSnapshot and GuiCommand structures for GUI input handling.
- Updated input and GUI script services to use new types and improved interfaces.
- Enhanced test_cube_script to validate new service implementations and Lua interactions.
2026-01-04 23:46:46 +00:00
7328eaa517 refactor: Introduce command line and JSON config writer services, enhance runtime configuration handling 2026-01-04 18:51:53 +00:00
7503dc440a refactor: Replace controllers with service-based architecture for application lifecycle and rendering 2026-01-04 18:29:04 +00:00
3a0707cceb refactor: Introduce GUI renderer service and update application service architecture 2026-01-04 18:19:27 +00:00
00a359d85f refactor: Enhance service architecture by introducing IPlatformService and updating dependencies
- Removed core/platform.hpp and core/vulkan_utils.cpp, integrating their functionality into new platform_service implementations.
- Updated service registrations to utilize IPlatformService for improved modularity.
- Refactored event bus usage across services to leverage IEventBus interface.
- Enhanced buffer management in BufferService with detailed logging and error handling.
- Updated GUI rendering services to utilize buffer service for resource management.
- Cleaned up includes and improved overall code organization for better maintainability.
2026-01-04 17:43:18 +00:00
1e6be869e0 Refactor script and audio services to enhance logging and remove unused components
- Removed the LuaScriptService implementation and interface as it was redundant.
- Updated ShaderManager and ScriptEngine to utilize ILogger for improved logging.
- Enhanced SdlAudioService with detailed logging for audio operations and error handling.
- Refactored physics bridge service to include logging for physics operations.
- Updated interfaces to remove IScriptService and adjust dependencies accordingly.
- Cleaned up includes and organized namespaces for better code clarity.
2026-01-04 17:14:06 +00:00
6b98369bd7 stuff 2026-01-04 15:54:28 +00:00
41b58afc69 refactor: Introduce script engine and related services for enhanced scripting capabilities 2026-01-04 15:39:07 +00:00
0a893172c1 refactor: Update audio service integration and logger usage in application components 2026-01-04 15:07:30 +00:00
8d269b8c67 Remove SDL3 application rendering and swapchain management code
- Deleted sdl3_app_render.cpp and sdl3_app_swapchain.cpp files, which contained the rendering and swapchain management logic for the SDL3 application.
- Removed associated header files and macros that were no longer needed.
- Eliminated the Vulkan API wrapper functions and the script service implementation, streamlining the codebase.
- This cleanup reduces complexity and potential maintenance overhead for the SDL3 application.
2026-01-04 14:55:18 +00:00
a4802179e0 fix: Update error handling in ServiceBasedApp and main to fallback to console logging when logger is unavailable 2026-01-04 14:54:43 +00:00
471b18e58c feat: Add ConfigureLogging method and GetLogger for improved logging configuration 2026-01-04 14:54:12 +00:00
b24e1062a0 feat: Add ConfigureLogging method to ServiceBasedApp for enhanced logging configuration 2026-01-04 14:54:02 +00:00
80d8866924 feat: Add ILogger dependency to SwapchainService and update logging calls for consistency 2026-01-04 14:51:03 +00:00
ee7337aa38 feat: Add ILogger dependency to RenderCommandService and update logging calls for improved consistency 2026-01-04 14:49:54 +00:00
4edebc959a feat: Integrate ILogger into SdlInputService and LuaScriptService for improved logging 2026-01-04 14:48:58 +00:00
f1384d1355 feat: Replace logging with ILogger in CreateSurface and CreateInstance for consistency 2026-01-04 14:47:33 +00:00
ae42addcb2 feat: Replace logging in CleanupBuffers and Shutdown with ILogger for consistency 2026-01-04 14:46:31 +00:00
4e7e8982c8 feat: Pass ILogger instance to SdlAudioService for improved logging 2026-01-04 14:45:48 +00:00
f23c152928 feat: Integrate ILogger into SdlAudioService and PipelineService for enhanced logging 2026-01-04 14:45:38 +00:00
4d8bc2a457 feat: Integrate ILogger into SceneService and PipelineService for enhanced logging 2026-01-04 14:44:24 +00:00
ddfb9c5c4b feat: Pass ILogger instance to VulkanGuiService registration for improved logging 2026-01-04 14:42:24 +00:00
8ff88de33b feat: Integrate ILogger into BulletPhysicsService and VulkanGuiService for improved logging 2026-01-04 14:42:03 +00:00
38a3fdea78 feat: Implement logger service and integrate logging into various services 2026-01-04 14:39:50 +00:00
d2a2a879c2 feat: Integrate GUI input processing into input service and script service 2026-01-04 14:29:17 +00:00
ced8b8f5a7 feat: Add crash recovery service and integrate it into ServiceBasedApp 2026-01-04 14:22:18 +00:00
d8d0cfd5c8 feat: Implement logger service and refactor logging across application controllers 2026-01-04 14:17:18 +00:00
d2934ebc8d feat: Enhance logging in various controllers and services for better traceability 2026-01-04 14:12:38 +00:00
9e3abc00af feat: Remove temporary graphics initialization code from Run method 2026-01-04 14:08:49 +00:00
2165fe99dd feat: Refactor RenderCommandService to use lazy initialization and remove Initialize method 2026-01-04 14:08:32 +00:00
d30e423294 feat: Remove temporary graphics initialization code from Run method 2026-01-04 14:07:20 +00:00
440d5c6b6b feat: Update RegisterServices to correctly register EventBus with SwapchainService 2026-01-04 14:05:00 +00:00
768af4ea65 feat: Enhance GraphicsService to include window service and update swapchain handling 2026-01-04 14:04:51 +00:00
c8329dc760 feat: Update LoadShaderPathsMap to use sdl3cpp::services::ShaderPaths for shader path management 2026-01-04 13:58:24 +00:00
3903168a46 feat: Add SDL initialization in SdlWindowService to ensure proper setup before window creation 2026-01-04 13:55:43 +00:00
4786a335aa feat: Enhance service registration by passing runtime configuration to JsonConfigService 2026-01-04 13:55:13 +00:00
d0b2ca8d26 feat: Simplify service registration in ServiceBasedApp by using template parameters 2026-01-04 13:55:05 +00:00
5f76776f47 feat: Re-enable service initialization in ServiceBasedApp and improve SDL initialization check in SdlWindowService 2026-01-04 13:54:56 +00:00
92967ac971 feat: Update RegisterServices to pass eventBus to input and swapchain services 2026-01-04 13:54:46 +00:00
899e4763f2 feat: Temporarily disable service initialization in ServiceBasedApp and add GetCurrentCommandBuffer and GetGraphicsQueue methods in GraphicsService 2026-01-04 13:54:02 +00:00
086719280c feat: Temporarily disable graphics initialization and rendering for testing purposes 2026-01-04 13:48:55 +00:00
dc0c9bfebe feat: Enhance ServiceBasedApp constructor with detailed logging for initialization steps 2026-01-04 13:47:57 +00:00
59e3b9509e feat: Introduce service-based architecture with Scene and Graphics services for improved rendering and scene management 2026-01-04 13:47:33 +00:00
b6c697196a feat: Enforce "no macros" policy with CI checks, compiler warnings, and documentation 2026-01-04 02:12:48 +00:00
e86f277b19 feat: Include string_utils.hpp in audio_player, platform, main, and lua_helpers for enhanced logging capabilities 2026-01-04 02:00:41 +00:00
4edf0a2bbf feat: Enhance logging with detailed function tracing and argument conversion utilities 2026-01-04 01:58:08 +00:00
d8d1c0a557 feat: Enhance logging system with platform-specific error handling and trace functionality
- Added platform detection and user configuration directory retrieval in platform.cpp and platform.hpp.
- Implemented detailed error reporting for Windows in platform.cpp.
- Updated logger to use std::source_location for improved trace logging in logger.hpp.
- Refactored existing trace guards in various application files to remove function name parameters, utilizing the new logger functionality.
- Introduced a new script (add_traces.sh) to automate the addition of logging includes in relevant source files.
- Enhanced audio_player.cpp and other script files to include detailed logging for function entries and variable states.
2026-01-04 01:38:31 +00:00
198179bfca Refactor logging and tracing in SDL3 application
- Replaced macro-based logging with a dedicated Logger class for improved readability and maintainability.
- Introduced TraceGuard class for automatic function entry/exit logging.
- Updated all relevant source files to utilize the new logging and tracing mechanisms.
- Consolidated SDL_MAIN_HANDLED definition into a separate header file (sdl_macros.hpp) for better organization.
- Ensured consistent logging practices across the application, including error handling and debug information.
2026-01-04 01:14:05 +00:00
80609fcf22 feat: Replace trace logging with new logging system and remove trace.hpp 2026-01-04 00:39:49 +00:00