mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
feat: Temporarily disable graphics initialization and rendering for testing purposes
This commit is contained in:
@@ -68,6 +68,8 @@ void ServiceBasedApp::Run() {
|
||||
}
|
||||
|
||||
// Initialize graphics after window is created
|
||||
// Temporarily disabled for testing
|
||||
/*
|
||||
auto graphicsService = registry_.GetService<services::IGraphicsService>();
|
||||
if (graphicsService && windowService) {
|
||||
services::GraphicsConfig graphicsConfig;
|
||||
@@ -76,6 +78,7 @@ void ServiceBasedApp::Run() {
|
||||
graphicsService->InitializeDevice(windowService->GetNativeHandle(), graphicsConfig);
|
||||
graphicsService->InitializeSwapchain();
|
||||
}
|
||||
*/
|
||||
|
||||
// Connect services that depend on each other
|
||||
auto scriptService = registry_.GetService<services::IScriptService>();
|
||||
|
||||
@@ -85,9 +85,10 @@ void ApplicationController::ProcessFrame(float deltaTime) {
|
||||
}
|
||||
|
||||
// Render frame
|
||||
auto renderController = std::make_unique<RenderController>(registry_);
|
||||
renderController->RenderFrame(static_cast<float>(std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
std::chrono::high_resolution_clock::now().time_since_epoch()).count()) / 1000.0f);
|
||||
// Temporarily disabled for testing
|
||||
// auto renderController = std::make_unique<RenderController>(registry_);
|
||||
// renderController->RenderFrame(static_cast<float>(std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
// std::chrono::high_resolution_clock::now().time_since_epoch()).count()) / 1000.0f);
|
||||
}
|
||||
|
||||
} // namespace sdl3cpp::controllers
|
||||
|
||||
Reference in New Issue
Block a user