Archive 17/01/2023.

How to disable rendering update

George1

Dear all,
Does anyone aware if there is such a flag to disable rendering update or
flag to disable different update?

Thanks

Modanung

Object::SetBlockEvents() and Engine::SetPauseMinimized() might meet your criteria.

George1

Is SetPauseMinimized() pause everything?

I need to have the update event (e.g. position and transformation update), but not the graphic rendering update.

Regards

Modanung

Maybe engineParameters_[EP_HEADLESS] = true; would do the trick in your case?

George1

Not sure that’s what I need. But I want to turn rendering on and off at run time.

lezak

I don’t think You can do that without modyfing the engine, since Render() is called directly from RunFrame().
What You can do is set number of viewports to 0, this way everything will be updated, but only clear color will be rendered.

Eugene

XY problem, I guess.

George1

Thanks lezak, I have tried this method. My event update speed ( discrete event counter) looks like its still the same.

So I’m not sure this help increase the loop speed.