From 5f804cb0eb126ab7162855dad14d20eb381309c6 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 20 Nov 2011 15:50:56 +0100 Subject: [PATCH] Add another subsystem group. Sound subsystem wants to be the last in processing - so use a separate group. --- simgear/structure/subsystem_mgr.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/structure/subsystem_mgr.hxx b/simgear/structure/subsystem_mgr.hxx index f5f918f6..a0e76809 100644 --- a/simgear/structure/subsystem_mgr.hxx +++ b/simgear/structure/subsystem_mgr.hxx @@ -353,9 +353,10 @@ public: enum GroupType { INIT = 0, GENERAL, - FDM, ///< flight model, autopilot, instruments that run coupled + FDM, ///< flight model, autopilot, instruments that run coupled POST_FDM, ///< certain subsystems depend on FDM data DISPLAY, ///< view, camera, rendering updates + SOUND/*I want to be last!*/, ///< needs to run AFTER display, to allow concurrent GPU/sound processing MAX_GROUPS }; @@ -392,7 +393,6 @@ public: void setReportTimingCb(void* userData,SGSubsystemTimingCb cb) {reportTimingCb = cb;reportTimingUserData = userData;} private: - SGSubsystemGroup* _groups[MAX_GROUPS]; typedef std::map SubsystemDict;