コード例 #1
0
ファイル: sceneManager.py プロジェクト: connoryang/1v1dec
 def Run(self, ms):
     service.Service.Run(self, ms)
     self.registeredScenes = {}
     self.registeredCameras = {}
     self.sceneLoadedEvents = {}
     self.registeredJobs = []
     self.cameraOffsetOverride = None
     self.uiBackdropScene = None
     self.ProcessImportsAndCreateScenes()
     self.primaryJob = SceneContext()
     self.secondaryJob = None
     self.loadingClearJob = trinity.CreateRenderJob()
     self.loadingClearJob.name = 'loadingClear'
     self.loadingClearJob.Clear((0, 0, 0, 1))
     self.loadingClearJob.enabled = False
     self.overlaySceneKeys = [
         ViewState.StarMap, ViewState.SystemMap, ViewState.Planet,
         ViewState.ShipTree, ViewState.DockPanel
     ]
     self._sharedResources = {}
     self.routeVisualizer = None
     self.podDeathScene = None
     self._persistedSpaceObjects = {}
     self._updateCameras = []
     if '/skiprun' not in blue.pyos.GetArg():
         self._EnableLoadingClear()
     limit = gfxsettings.Get(gfxsettings.GFX_LOD_QUALITY) * 30
     self.explosionManager = util.ExplosionManager(limit)
コード例 #2
0
    def ExplosionPoolCont():
        """ Generates content for explosion pool table report. See _CreateTableWindow"""
        em = util.ExplosionManager()
        contentList = []
        for pool in em.pooledExplosions.values():
            poolID = pool.path.split('/')[-1]
            contentList.append(
                (poolID, pool.total, pool.active, pool.inactive, pool.refCount,
                 max(pool.maxRecentUsed), pool.totalLoads))

        label = '%s<t>%i<t>%i<t>%i<t>%i<t>%i<t>%i'
        headers = [
            'pool', 'size', 'active', 'inactive', 'refs', 'maxRecent', 'loads'
        ]
        return (contentList, label, headers)
コード例 #3
0
ファイル: sceneManager.py プロジェクト: R4M80MrX/eve-1
 def __init__(self):
     service.Service.__init__(self)
     self.uiBackdropScene = None
     self.ProcessImportsAndCreateScenes()
     self.primaryJob = SceneContext()
     self.secondaryJob = None
     self.loadingClearJob = trinity.CreateRenderJob()
     self.loadingClearJob.name = 'loadingClear'
     self.loadingClearJob.Clear((0, 0, 0, 1))
     self.loadingClearJob.enabled = False
     self.overlaySceneKeys = ['starmap', 'systemmap', 'planet']
     if '/skiprun' not in blue.pyos.GetArg():
         self._EnableLoadingClear()
     limit = settings.public.device.Get('lodQuality', 3) * 30
     self.explosionManager = util.ExplosionManager(limit)
     self.routeVisualizer = None
コード例 #4
0
 def __init__(self):
     self.explodeOnRemove = False
     self.exploded = False
     self.model = None
     self.released = False
     self.forceLOD = False
     self.wreckID = None
     self.audioEntities = []
     self.generalAudioEntity = None
     self.boosterAudioEvent = ''
     self.audioPumpStarted = False
     self.logChannel = log.GetChannel(self.__guid__)
     self.modelLoadedEvent = locks.Event()
     self.explosionModel = None
     self.typeID = None
     self.raceID = None
     self.explosionManager = util.ExplosionManager()
コード例 #5
0
 def Run(self, ms):
     service.Service.Run(self, ms)
     self.registeredScenes = {}
     self.registeredCameras = {}
     self.sceneLoadedEvents = {}
     self.registeredJobs = []
     self.cameraOffsetOverride = None
     self.uiBackdropScene = None
     self.ProcessImportsAndCreateScenes()
     self.primaryJob = SceneContext()
     self.secondaryJob = None
     self.loadingClearJob = trinity.CreateRenderJob()
     self.loadingClearJob.name = 'loadingClear'
     self.loadingClearJob.Clear((0, 0, 0, 1))
     self.loadingClearJob.enabled = False
     self.overlaySceneKeys = ['starmap', 'systemmap', 'planet', 'shipTree']
     self._sharedResources = {}
     self.routeVisualizer = None
     self.podDeathScene = None
     self.particlePoolManager = trinity.Tr2GPUParticlePoolManager()
     if '/skiprun' not in blue.pyos.GetArg():
         self._EnableLoadingClear()
     limit = gfxsettings.Get(gfxsettings.GFX_LOD_QUALITY) * 30
     self.explosionManager = util.ExplosionManager(limit)