remove clutter from organizer scene service

This commit is contained in:
Green Sky 2021-05-22 14:05:27 +02:00
parent 1248957a18
commit 9e9b644856
2 changed files with 0 additions and 23 deletions

View File

@ -38,16 +38,9 @@ namespace MM::Services {
bool OrganizerSceneService::enable(Engine& engine, std::vector<UpdateStrategies::TaskInfo>& task_array) {
// add tasks
task_array.push_back(
UpdateStrategies::TaskInfo{"OrganizerSceneService::scene_update"}
.fn([this](Engine& e) { sceneUpdate(e); })
);
task_array.push_back(
UpdateStrategies::TaskInfo{"OrganizerSceneService::scene_tick"}
.fn([this](Engine& e) { sceneFixedUpdate(e); })
// bc it renders imgui, but this is not "hard"
.succeed("OrganizerSceneService::scene_update")
);
task_array.push_back(
UpdateStrategies::TaskInfo{"OrganizerSceneService::scene_changer"}
@ -110,21 +103,6 @@ void OrganizerSceneService::changeSceneFixedUpdate(Engine& engine) {
}
}
void OrganizerSceneService::sceneUpdate(Engine&) {
ZoneScoped;
//if (ImGui::Begin("OrganizerScene")) {
//ImGui::SliderFloat("time_factor", &delta_factor, 0.f, 10.f, "%.5f", ImGuiSliderFlags_Logarithmic);
//}
//ImGui::End();
//for (auto&& v : _scene->ctx<std::vector<entt::organizer::vertex>>()) {
//v.callback()(v.data(), *_scene);
//}
//TracyPlot("MM::Services::OrganizerSceneService::_scene.alive", (int64_t)_scene->alive());
}
void OrganizerSceneService::changeScene(std::unique_ptr<Scene>&& new_scene) {
if (_next_scene) {
LOG_OSS("warn: already next scene enqueued! overwriting...");

View File

@ -42,7 +42,6 @@ namespace MM::Services {
void sceneFixedUpdate(Engine& engine);
void changeSceneFixedUpdate(Engine& engine);
void sceneUpdate(Engine& engine);
void updateOrganizerVertices(Scene& scene);
void resetTime(void);