def paintGL(self): with profiler.context("paintGL: %s" % self): self.frameSamples.append(time.time()) if self.textureAtlas: self.textureAtlas.update() with profiler.context("renderScene"): rendernode.renderScene(self.renderGraph)
def paintGL(self): with profiler.context("paintGL: %s" % self): self.frameSamples.append(time.time()) if self.textureAtlas: self.textureAtlas.update() with profiler.context("renderScene"): rendernode.renderScene(self.renderGraph) self.doneCurrent() self.bufferSwapDone = False self.doSwapBuffers.emit()
def paintGL(self): if not self.shouldRender: return try: with profiler.context("paintGL: %s" % self): self.frameSamples.append(time.time()) if self.textureAtlas: self.textureAtlas.update() with profiler.context("renderScene"): rendernode.renderScene(self.renderGraph) if THREADED_BUFFER_SWAP: self.doneCurrent() self.bufferSwapDone = False self.doSwapBuffers.emit() except: self.shouldRender = False raise